diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-05 19:58:47 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-05-05 19:58:47 -0400 |
commit | 70c312779ecad328a8003b93ebe253c4598b6980 (patch) | |
tree | edd173bbba824632cb55b7818367744a6a4de691 /lib/cleanpath.c | |
parent | a92b4038179c3706bd176097be1caabd88824755 (diff) | |
download | cleanpath-70c312779ecad328a8003b93ebe253c4598b6980.tar.gz |
Add
* OS detection
* linux specfic limits header
Diffstat (limited to 'lib/cleanpath.c')
-rw-r--r-- | lib/cleanpath.c | 4 |
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") |