diff options
Diffstat (limited to 'usr.bin/vi/include/file.h')
| -rw-r--r-- | usr.bin/vi/include/file.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.bin/vi/include/file.h b/usr.bin/vi/include/file.h new file mode 100644 index 000000000000..680797fa6a52 --- /dev/null +++ b/usr.bin/vi/include/file.h @@ -0,0 +1,15 @@ +/* + * If we're doing flock(2) emulation, we need to get the LOCK_* #defines. + * This stub <sys/file.h> includes the real one, and, if they're not in + * it, we #define them here. + */ + +#include </usr/include/sys/file.h> + +#ifndef LOCK_SH +/* lock operations for flock(2) */ +#define LOCK_SH 0x01 /* shared file lock */ +#define LOCK_EX 0x02 /* exclusive file lock */ +#define LOCK_NB 0x04 /* don't block when locking */ +#define LOCK_UN 0x08 /* unlock file */ +#endif |
