summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/common.h b/common.h
index 39355685..0b8fe998 100644
--- a/common.h
+++ b/common.h
@@ -19,8 +19,11 @@
#define __COMMON_H
#include <limits.h>
-#ifndef PATH_MAX
-#define PATH_MAX 1024 /* max # of characters in a path name */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+#if HAVE_SYS_SYSLIMITS_H
+#include <sys/syslimits.h>
#endif
#define min(x,y) ((x)<(y)?(x):(y))