From c61317e21976fdc46c8cf4aed0fe0ac47c65a650 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 8 Sep 2014 18:46:12 +0200 Subject: [PATCH] lib/external/fexec.c: fix build with glibc>=2.20 (needs _DEFAULT_SOURCE). --- lib/external/fexec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/external/fexec.c b/lib/external/fexec.c index cbdb0d50..00eff213 100644 --- a/lib/external/fexec.c +++ b/lib/external/fexec.c @@ -28,6 +28,7 @@ */ #define _BSD_SOURCE /* for vfork and chroot */ +#define _DEFAULT_SOURCE /* glibc>=2.20 */ #include #include @@ -37,6 +38,7 @@ #include #include +#undef _DEFAULT_SOURCE #undef _BSD_SOURCE #include "xbps_api_impl.h"