X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b87ad7964edcba3651f27a846a814358084478a7..e1778858ddc53a6a82e8ee24f02e6b673687f69a:/client/whereami.c diff --git a/client/whereami.c b/client/whereami.c index 48e87c7f..a8531889 100644 --- a/client/whereami.c +++ b/client/whereami.c @@ -10,6 +10,11 @@ extern "C" { #endif +#if defined(__linux__) +// make realpath() available: +#define _DEFAULT_SOURCE +#endif + #if !defined(WAI_MALLOC) || !defined(WAI_FREE) || !defined(WAI_REALLOC) #include #endif @@ -160,7 +165,6 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) */ #elif defined(__linux__) -#define _DEFAULT_SOURCE #include #include #include