From 2a9996f6718f2f6e63b4506b4d62e9027dce5e5c Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 12 Mar 2019 16:50:27 -0700 Subject: [PATCH] Define _DEFAULT_SOURCE to get various posix/gnu glibc functions declared (#137) fdopen, strdup and others are not declared by glibc header files unless _DEFAULT_SOURCE is defined. Signed-off-by: Keith Packard --- api_test/harness.c | 1 + 1 file changed, 1 insertion(+) diff --git a/api_test/harness.c b/api_test/harness.c index 702dc9098..6b7336f97 100644 --- a/api_test/harness.c +++ b/api_test/harness.c @@ -1,3 +1,4 @@ +#define _DEFAULT_SOURCE #include #include #include