]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/whereami.c
FIX: introduced a bug in luascripts when adding the "safe ascii chars" to ConvertHex...
[proxmark3-svn] / client / whereami.c
index 8f4c71916ca279dd8a0b65d006497904b422b77c..a85318895f8dc4dfb07bcd6bcd96ea8287397aa0 100644 (file)
 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>
Impressum, Datenschutz