X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d32691f1da1dd27190f0ece96b17080ae46f835d..57778a46308a250f4c9b1516aa8ca251d4e09cc5:/client/whereami.c

diff --git a/client/whereami.c b/client/whereami.c
index 8f4c7191..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 <stdlib.h>
 #endif
@@ -160,7 +165,6 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length)
 */
 
 #elif defined(__linux__)
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>