diff options
author | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2016-12-22 17:17:04 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-12-26 11:17:33 +0100 |
commit | 2912f9f2a2e5997df069d38e20d85ff4cc51acef (patch) | |
tree | 783e8cd472936ac1ca9378f16fb3189a486e7a48 /toolchain/musl/patches/025-fix-ffsync-by-changing-it-to-osync.patch | |
parent | b97c933ffb5aae338351a1db12a3f7cf5234f5c7 (diff) | |
download | upstream-2912f9f2a2e5997df069d38e20d85ff4cc51acef.tar.gz upstream-2912f9f2a2e5997df069d38e20d85ff4cc51acef.tar.bz2 upstream-2912f9f2a2e5997df069d38e20d85ff4cc51acef.zip |
musl: backport various post-1.1.15 fixes
Backport most important fixes up to latest HEAD
- Taken post-commit reverts/fixes into account
Compile tested
Run-tested on cns3xxx & imx6 targets
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'toolchain/musl/patches/025-fix-ffsync-by-changing-it-to-osync.patch')
-rw-r--r-- | toolchain/musl/patches/025-fix-ffsync-by-changing-it-to-osync.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/toolchain/musl/patches/025-fix-ffsync-by-changing-it-to-osync.patch b/toolchain/musl/patches/025-fix-ffsync-by-changing-it-to-osync.patch new file mode 100644 index 0000000000..fc7334d512 --- /dev/null +++ b/toolchain/musl/patches/025-fix-ffsync-by-changing-it-to-osync.patch @@ -0,0 +1,25 @@ +From c1f4ed150137d793c9d07356305a89e8785e7e02 Mon Sep 17 00:00:00 2001 +From: Duncan Overbruck <duncaen@voidlinux.eu> +Date: Thu, 18 Aug 2016 17:06:16 +0200 +Subject: fix FFSYNC by changing it to O_SYNC + +O_FSYNC was never defined and is legacy/wrong, nothing seems to use it. +--- + include/fcntl.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/fcntl.h b/include/fcntl.h +index e683e4d..0e165ca 100644 +--- a/include/fcntl.h ++++ b/include/fcntl.h +@@ -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 +-- +cgit v0.11.2 |