diff --git a/api_test/harness.c b/api_test/harness.c index 6b7336f97..f561aeace 100644 --- a/api_test/harness.c +++ b/api_test/harness.c @@ -1,4 +1,7 @@ -#define _DEFAULT_SOURCE +// _GNU_SOURCE is all ISO/POSIX/XOPEN/BSD/SVID + GNU extensions. It also sets +// _DEFAULT_SOURCE on newer glibc. We need this for strdup/snprintf/fdopen/etc. +#define _GNU_SOURCE + #include #include #include