summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Include/osdefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/osdefs.h b/Include/osdefs.h
index 6937659..77af923 100644
--- a/Include/osdefs.h
+++ b/Include/osdefs.h
@@ -36,6 +36,14 @@ extern "C" {
#endif
/* Max pathname length */
+#ifdef __hpux
+#include <sys/param.h>
+#include <limits.h>
+#ifndef PATH_MAX
+#define PATH_MAX MAXPATHLEN
+#endif
+#endif
+
#ifndef MAXPATHLEN
#if defined(PATH_MAX) && PATH_MAX > 1024
#define MAXPATHLEN PATH_MAX