summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-11-12 19:35:29 (GMT)
committerStefan Krah <skrah@bytereef.org>2012-11-12 19:35:29 (GMT)
commit4a3a3f3bda8ab7092f85495451531c9373d6c9e1 (patch)
tree6b5f3de8adcb1edd30cd8c0b6eaeb542fb87b4fe
parent8a0d58bb3dd029c168aedf97508bb56170b8fa66 (diff)
downloadcpython-4a3a3f3bda8ab7092f85495451531c9373d6c9e1.zip
cpython-4a3a3f3bda8ab7092f85495451531c9373d6c9e1.tar.gz
cpython-4a3a3f3bda8ab7092f85495451531c9373d6c9e1.tar.bz2
Backport 5db6d9ddf6e8.
-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