From a3aa89d8268a4d3af43d94e77f473753fd99d8da Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 14 Apr 2011 22:06:30 -0400 Subject: fix O_SYNC definition, cleanup fcntl.h --- include/fcntl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/fcntl.h') diff --git a/include/fcntl.h b/include/fcntl.h index 6faf9cda..1c18c6e2 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -78,6 +78,14 @@ int posix_fallocate(int, off_t, off_t); #define S_IRWXO 0007 #endif +#ifdef _GNU_SOURCE +#define FAPPEND O_APPEND +#define FFSYNC O_FSYNC +#define FASYNC O_ASYNC +#define FNONBLOCK O_NONBLOCK +#define FNDELAY O_NDELAY +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.1