summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmore.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmore.c b/xmore.c
index 67be5e8..1b34c61 100644
--- a/xmore.c
+++ b/xmore.c
@@ -53,6 +53,14 @@ in this Software without prior written authorization from The Open Group.
#define Assertion(expr, msg) { if (!(expr)) { Error msg } }
#define Log(x) { if (userOptions.verbose) printf x; }
+#ifndef PATH_MAX
+# ifdef MAXPATHLEN
+# define PATH_MAX MAXPATHLEN
+# else
+# define PATH_MAX 1024 /* Good enough for most systems */
+# endif
+#endif
+
/* Global vars */
static Widget printdialog_shell = NULL;
static Widget printdialog = NULL;