aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 22:49:48 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-05-05 22:49:48 -0400
commit84f355252e33510c96adc94114ff7e63e8059d8b (patch)
tree2687e760eccc80a12acc6a271c933aa398e3728a
parentbf8a03e4867a019ab66c34832c3d93108c89c840 (diff)
downloadcleanpath-84f355252e33510c96adc94114ff7e63e8059d8b.tar.gz
Independent ifdefs
-rw-r--r--lib/cleanpath.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/cleanpath.c b/lib/cleanpath.c
index 038e300..55d6c22 100644
--- a/lib/cleanpath.c
+++ b/lib/cleanpath.c
@@ -8,10 +8,12 @@
#if OS_LINUX
#ifdef HAVE_SYS_LIMIT_H
#include <sys/limits.h>
-#elif HAVE_LINUX_LIMIT_H
+#endif // HAVE_SYS_LIMIT_H
+
+#ifdef HAVE_LINUX_LIMIT_H
#include <linux/limits.h>
-#endif
-#endif
+#endif // HAVE_LINUX_LIMIT_H
+#endif // OS_LINUX
/**
* Split path into parts by sep