diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-21 12:48:55 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-12-21 12:48:55 +0000 |
commit | f3c9c3c70187967a670f1c059f5461dce745d92e (patch) | |
tree | 58bf50c6a4d4014e976aa6a9e6a69b4680b067de /src/sysdeps/trydirfd.c | |
parent | 8a3e5a8b05ad0a7fab63595b6b4eafec56f63f89 (diff) | |
download | skalibs-f3c9c3c70187967a670f1c059f5461dce745d92e.tar.xz |
GNU manages to botch dirfd() too. POSIX is hard!
Diffstat (limited to 'src/sysdeps/trydirfd.c')
-rw-r--r-- | src/sysdeps/trydirfd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |