From 3fd78b9c1dac0fb6c36a7d2c17a399ad791c4b0b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 16 Sep 2011 13:06:09 -0400 Subject: PATH_MAX is not defined in limits.h (randomly?) so if it is undefined at compile time, it will no longer fail to build. --- include/duser.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'include/duser.h') diff --git a/include/duser.h b/include/duser.h index 345bf49..5a70fe4 100644 --- a/include/duser.h +++ b/include/duser.h @@ -26,14 +26,19 @@ #endif #include -#define REGEX_MAX 255 -#define SELF __FUNCTION__ -#ifndef HAVE_SOLARIS +#ifndef PATH_MAX +# define PATH_MAX 256 +#endif + +#ifndef HAVE_COMPAT # define FMTLIST "%20s\t%5d%23s\n" #else # define FMTLIST "%20s\t%5d%16s\n" #endif +#define REGEX_MAX 255 +#define SELF __FUNCTION__ + typedef struct stats_t { int lines; -- cgit