patch 9.0.1381: ACCESS_ names have a conflict with on some systems
Problem: ACCESS_ names have a conflict with on some systems.
Solution: Rename by prepending VIM_. (Ola Söder, closes #12105)
diff --git a/src/fileio.c b/src/fileio.c
index d8b395a..5a2e388 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3830,7 +3830,7 @@
* original file will be somewhere else so the backup isn't really
* important. If autoscripting is off the rename may fail.
*/
- flock = Lock((UBYTE *)from, (long)ACCESS_READ);
+ flock = Lock((UBYTE *)from, (long)VIM_ACCESS_READ);
#endif
mch_remove(to);
#ifdef AMIGA