fix FFSYNC by changing it to O_SYNC
authorDuncan Overbruck <duncaen@voidlinux.eu>
Thu, 18 Aug 2016 15:06:16 +0000 (17:06 +0200)
committerRich Felker <dalias@aerifal.cx>
Tue, 30 Aug 2016 20:01:47 +0000 (16:01 -0400)
O_FSYNC was never defined and is legacy/wrong, nothing seems to use it.

include/fcntl.h

index e683e4dc6873f77638667a2c42cdc3b15610bd1b..0e165ca3c98853fb2e4595c061a6dafd750b0daf 100644 (file)
@@ -99,7 +99,7 @@ int posix_fallocate(int, off_t, off_t);
 #define AT_EMPTY_PATH 0x1000
 
 #define FAPPEND O_APPEND
-#define FFSYNC O_FSYNC
+#define FFSYNC O_SYNC
 #define FASYNC O_ASYNC
 #define FNONBLOCK O_NONBLOCK
 #define FNDELAY O_NDELAY