aboutsummaryrefslogtreecommitdiff
path: root/lib/cleanpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cleanpath.c')
-rw-r--r--lib/cleanpath.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/cleanpath.c b/lib/cleanpath.c
index d7f207d..038e300 100644
--- a/lib/cleanpath.c
+++ b/lib/cleanpath.c
@@ -3,10 +3,15 @@
#include <limits.h>
#include <regex.h>
#include "cleanpath.h"
+#include "config.h"
#if OS_LINUX
+#ifdef HAVE_SYS_LIMIT_H
+#include <sys/limits.h>
+#elif HAVE_LINUX_LIMIT_H
#include <linux/limits.h>
#endif
+#endif
/**
* Split path into parts by sep