aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2011-09-16 13:06:09 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2011-09-16 13:06:09 -0400
commit3fd78b9c1dac0fb6c36a7d2c17a399ad791c4b0b (patch)
treeb51e74c07ba16ce5c46d31877c54d26a54e0d290
parentea521a296cc6888e631d9c9efd6ccb11a995bc21 (diff)
downloadduser-3fd78b9c1dac0fb6c36a7d2c17a399ad791c4b0b.tar.gz
PATH_MAX is not defined in limits.h (randomly?) so if it is undefined at compile time, it will no longer fail to build.
-rw-r--r--include/duser.h11
1 files changed, 8 insertions, 3 deletions
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 <limits.h>
-#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;