summaryrefslogtreecommitdiffstats
path: root/Include/osdefs.h
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-11-12 19:14:36 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-11-12 19:14:36 (GMT)
commit6df5cae49a6ff61ce523361d30784893e59f3837 (patch)
treef23fabc87b5f00ca675dde481682aa0a14e68cc7 /Include/osdefs.h
parente667e98faad93e76b8b569d853eb02d91591f5fb (diff)
downloadcpython-6df5cae49a6ff61ce523361d30784893e59f3837.zip
cpython-6df5cae49a6ff61ce523361d30784893e59f3837.tar.gz
cpython-6df5cae49a6ff61ce523361d30784893e59f3837.tar.bz2
Issue #15835: Define PATH_MAX on HP-UX.
Diffstat (limited to 'Include/osdefs.h')
-rw-r--r--Include/osdefs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/osdefs.h b/Include/osdefs.h
index 90b430a..05c0c8e 100644
--- a/Include/osdefs.h
+++ b/Include/osdefs.h
@@ -29,6 +29,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