summaryrefslogtreecommitdiffstats
path: root/main/musl/0002-add-flock64-alias-for-struct-flock-in-fcntl.h.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-02-19 07:36:12 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-02-19 07:50:34 +0000
commit3a5340eca2273ccb3f8e3b38e40283c56e6cbaf8 (patch)
tree785698c24812846bb77f9326452253faa61041e7 /main/musl/0002-add-flock64-alias-for-struct-flock-in-fcntl.h.patch
parent054c297c3ee32d6b584bc2bcb3477d646bc30167 (diff)
downloadaports-3a5340eca2273ccb3f8e3b38e40283c56e6cbaf8.tar.bz2
aports-3a5340eca2273ccb3f8e3b38e40283c56e6cbaf8.tar.xz
main/musl: cherry-pick flock64 fix from upstream, add getconf
needed for openjdk6/icedtea building
Diffstat (limited to 'main/musl/0002-add-flock64-alias-for-struct-flock-in-fcntl.h.patch')
-rw-r--r--main/musl/0002-add-flock64-alias-for-struct-flock-in-fcntl.h.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/main/musl/0002-add-flock64-alias-for-struct-flock-in-fcntl.h.patch b/main/musl/0002-add-flock64-alias-for-struct-flock-in-fcntl.h.patch
new file mode 100644
index 000000000..c2ec46f1d
--- /dev/null
+++ b/main/musl/0002-add-flock64-alias-for-struct-flock-in-fcntl.h.patch
@@ -0,0 +1,26 @@
+From fdb3efa5ddfa7120de98f8ae78b5f5dc9e8e2e71 Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Tue, 18 Feb 2014 11:04:15 -0500
+Subject: [PATCH] add flock64 alias for (struct) flock in fcntl.h
+
+this was a missing part of the LFS64 API; it's "needed" for use with
+fcntl and the corresponding lock commands.
+---
+ include/fcntl.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/fcntl.h b/include/fcntl.h
+index e01a4d1..2d8fa6e 100644
+--- a/include/fcntl.h
++++ b/include/fcntl.h
+@@ -161,6 +161,7 @@ ssize_t tee(int, int, size_t, unsigned);
+ #define F_GETLK64 F_GETLK
+ #define F_SETLK64 F_SETLK
+ #define F_SETLKW64 F_SETLKW
++#define flock64 flock
+ #define open64 open
+ #define openat64 openat
+ #define creat64 creat
+--
+1.8.5.4
+