diff --git a/SDL/utils.c b/SDL/utils.c index 56ba7ac..d14beed 100644 --- a/SDL/utils.c +++ b/SDL/utils.c @@ -7,6 +7,10 @@ #include #include #endif +#ifdef __linux__ +#include +#include +#endif #include "utils.h" const char *executable_folder(void) @@ -21,7 +25,7 @@ const char *executable_folder(void) _NSGetExecutablePath(&path[0], &length); #else #ifdef __linux__ - ssize_t length = readlink("/proc/self/exe", &path[0], sizeof(path) - 1); + ssize_t __attribute__((unused)) length = readlink("/proc/self/exe", &path[0], sizeof(path) - 1); assert (length != -1); #else #ifdef _WIN32