From b5695ce9f078c87a9599759900638546b5025325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Thu, 6 Sep 2018 13:45:42 +0200 Subject: [PATCH] linux: sometimes does not define PATH_MAX Hence we include in this case --- src/whereami.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/whereami.c b/src/whereami.c index f51ea85..6ebd5a2 100644 --- a/src/whereami.c +++ b/src/whereami.c @@ -163,7 +163,11 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) #include #include #include +#if defined(__linux__) +#include +#else #include +#endif #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif