lib/external/fexec.c: fix build with glibc>=2.20 (needs _DEFAULT_SOURCE).

This commit is contained in:
Juan RP 2014-09-08 18:46:12 +02:00
parent b67d4ec975
commit c61317e219

View File

@ -28,6 +28,7 @@
*/
#define _BSD_SOURCE /* for vfork and chroot */
#define _DEFAULT_SOURCE /* glibc>=2.20 */
#include <sys/types.h>
#include <unistd.h>
@ -37,6 +38,7 @@
#include <stdlib.h>
#include <string.h>
#undef _DEFAULT_SOURCE
#undef _BSD_SOURCE
#include "xbps_api_impl.h"