From f3c9c3c70187967a670f1c059f5461dce745d92e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 21 Dec 2017 12:48:55 +0000 Subject: GNU manages to botch dirfd() too. POSIX is hard! --- src/sysdeps/trydirfd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sysdeps/trydirfd.c') diff --git a/src/sysdeps/trydirfd.c b/src/sysdeps/trydirfd.c index c2eccf2..2b65c53 100644 --- a/src/sysdeps/trydirfd.c +++ b/src/sysdeps/trydirfd.c @@ -3,6 +3,9 @@ #undef _POSIX_C_SOURCE #undef _XOPEN_SOURCE +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #ifndef _NETBSD_SOURCE #define _NETBSD_SOURCE #endif -- cgit v1.2.3