about summary refs log tree commit diff
path: root/io
diff options
context:
space:
mode:
Diffstat (limited to 'io')
-rw-r--r--io/fcntl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/io/fcntl.h b/io/fcntl.h
index 792bd938ec..7d24c22c42 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -43,6 +43,15 @@ __BEGIN_DECLS
 #endif
 #endif /* Use misc.  */
 
+/* Define some more compatibility macros to be backward compatible with
+   BSD systems which did not managed to hide these kernel macros.  */
+#ifdef	__USE_BSD
+#define	FAPPEND		O_APPEND
+#define	FASYNC		O_ASYNC
+#define	FFSYNC		O_FSYNC
+#define	FNONBLOCK	O_NONBLOCK
+#define	FNDELAY		O_NDELAY
+#endif /* Use BSD.  */
 
 /* Do the file control operation described by CMD on FD.
    The remaining arguments are interpreted depending on CMD.  */