git » libfiu » commit 3f5fed8

libfiu: Use limits.h to get PATH_MAX

author Alberto Bertogli
2009-07-02 21:32:07 UTC
committer Alberto Bertogli
2009-07-02 21:32:07 UTC
parent a45d499f313919b68b3cb50c2dabfe120e2e355f

libfiu: Use limits.h to get PATH_MAX

That's the standard location, sys/param.h is not portable.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

libfiu/fiu-rc.c +1 -1

diff --git a/libfiu/fiu-rc.c b/libfiu/fiu-rc.c
index 83dcb83..61d6859 100644
--- a/libfiu/fiu-rc.c
+++ b/libfiu/fiu-rc.c
@@ -6,7 +6,7 @@
 #include <stdio.h>		/* snprintf() */
 #include <string.h>		/* strncpy() */
 #include <stdlib.h>		/* malloc()/free() */
-#include <sys/param.h>		/* PATH_MAX */
+#include <limits.h>		/* PATH_MAX */
 #include <sys/types.h>		/* getpid(), mknod() */
 #include <unistd.h>		/* getpid(), mknod() */
 #include <sys/stat.h>		/* mknod() */