aboutsummaryrefslogtreecommitdiff
path: root/src/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader.c')
-rw-r--r--src/loader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/loader.c b/src/loader.c
index f8876dd..51291bf 100644
--- a/src/loader.c
+++ b/src/loader.c
@@ -8,6 +8,11 @@
#include <SDL2/SDL.h>
#include <FreeImage.h>
+/* Some systems like GNU/Hurd don't define PATH_MAX */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
static void block_usr1_signal(void);
static int is_thread_cancelled(void);
static void *bg_new_img(void *data);