diff --git a/client/whereami.c b/client/whereami.c index 48e87c7fa..aa702adc2 100644 --- a/client/whereami.c +++ b/client/whereami.c @@ -10,6 +10,8 @@ extern "C" { #endif +#define _DEFAULT_SOURCE + #if !defined(WAI_MALLOC) || !defined(WAI_FREE) || !defined(WAI_REALLOC) #include #endif @@ -160,7 +162,6 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) */ #elif defined(__linux__) -#define _DEFAULT_SOURCE #include #include #include