From 526e90f877a9560f0756cf2de4ae94494bd1147e Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 23 Aug 2017 16:45:42 +0200 Subject: [PATCH] xbps: add glibc-2.16 patch --- srcpkgs/xbps/patches/fix-glibc216.patch | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 srcpkgs/xbps/patches/fix-glibc216.patch diff --git a/srcpkgs/xbps/patches/fix-glibc216.patch b/srcpkgs/xbps/patches/fix-glibc216.patch new file mode 100644 index 00000000000..9e85eb0b619 --- /dev/null +++ b/srcpkgs/xbps/patches/fix-glibc216.patch @@ -0,0 +1,35 @@ +From 876f9f4a27ffd9477be8348710cb0baf387c50a0 Mon Sep 17 00:00:00 2001 +From: Leah Neukirchen +Date: Mon, 7 Aug 2017 16:08:15 +0200 +Subject: [PATCH] xbps-fbulk: use _DEFAULT_SOURCE, required for wait3 in glibc + 2.16. + +Also these guards need to be defined before including anything. +--- + bin/xbps-fbulk/main.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/bin/xbps-fbulk/main.c b/bin/xbps-fbulk/main.c +index 82dc0a16..b686cfa7 100644 +--- bin/xbps-fbulk/main.c ++++ bin/xbps-fbulk/main.c +@@ -47,6 +47,8 @@ + * Only one attempt is made to build any given package, no matter how many + * other packages depend on it. + */ ++#define _DEFAULT_SOURCE ++#define _BSD_SOURCE + #include + #include + #include +@@ -59,9 +61,7 @@ + #include + #include + #include +-#define _BSD_SOURCE +-# include +-#undef _BSD_SOURCE ++#include + #include + + #include