aboutsummaryrefslogtreecommitdiff
path: root/lib/cleanpath.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 19:58:47 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 19:58:47 -0400
commit70c312779ecad328a8003b93ebe253c4598b6980 (patch)
treeedd173bbba824632cb55b7818367744a6a4de691 /lib/cleanpath.c
parenta92b4038179c3706bd176097be1caabd88824755 (diff)
downloadcleanpath-70c312779ecad328a8003b93ebe253c4598b6980.tar.gz
Add
* OS detection * linux specfic limits header
Diffstat (limited to 'lib/cleanpath.c')
-rw-r--r--lib/cleanpath.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/cleanpath.c b/lib/cleanpath.c
index 344c705..d7f207d 100644
--- a/lib/cleanpath.c
+++ b/lib/cleanpath.c
@@ -4,6 +4,10 @@
#include <regex.h>
#include "cleanpath.h"
+#if OS_LINUX
+#include <linux/limits.h>
+#endif
+
/**
* Split path into parts by sep
* @param path a string (e.g. "/path1:/path2:/pathN")