zlib: Update to 1.2.11
[openwrt/openwrt.git] / toolchain / musl / patches / 025-fix-ffsync-by-changing-it-to-osync.patch
1 From c1f4ed150137d793c9d07356305a89e8785e7e02 Mon Sep 17 00:00:00 2001
2 From: Duncan Overbruck <duncaen@voidlinux.eu>
3 Date: Thu, 18 Aug 2016 17:06:16 +0200
4 Subject: fix FFSYNC by changing it to O_SYNC
5
6 O_FSYNC was never defined and is legacy/wrong, nothing seems to use it.
7 ---
8 include/fcntl.h | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/include/fcntl.h b/include/fcntl.h
12 index e683e4d..0e165ca 100644
13 --- a/include/fcntl.h
14 +++ b/include/fcntl.h
15 @@ -99,7 +99,7 @@ int posix_fallocate(int, off_t, off_t);
16 #define AT_EMPTY_PATH 0x1000
17
18 #define FAPPEND O_APPEND
19 -#define FFSYNC O_FSYNC
20 +#define FFSYNC O_SYNC
21 #define FASYNC O_ASYNC
22 #define FNONBLOCK O_NONBLOCK
23 #define FNDELAY O_NDELAY
24 --
25 cgit v0.11.2