]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport 5db6d9ddf6e8.
authorStefan Krah <skrah@bytereef.org>
Mon, 12 Nov 2012 19:35:29 +0000 (20:35 +0100)
committerStefan Krah <skrah@bytereef.org>
Mon, 12 Nov 2012 19:35:29 +0000 (20:35 +0100)
Include/osdefs.h

index 6937659325af793133e17b5a3812f3f7bd4a6c15..77af9237546147ceec4640515bd9ee2aa5e43f32 100644 (file)
@@ -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