From a9d08ed0d542e2bbbef6d7cb9aaa79cc6c6d4046 Mon Sep 17 00:00:00 2001 From: pwpiwi Date: Mon, 27 Feb 2017 08:39:12 +0100 Subject: [PATCH] fix for Kali Linux users (Issue #218) --- client/whereami.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/whereami.c b/client/whereami.c index 021ad874..7c09894f 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 -- 2.39.5