[Python-checkins] cpython (2.7): Backport 5db6d9ddf6e8.

stefan.krah python-checkins at python.org
Mon Nov 12 20:37:12 CET 2012


http://hg.python.org/cpython/rev/bb21c800cf49
changeset:   80408:bb21c800cf49
branch:      2.7
parent:      80405:121872879e91
user:        Stefan Krah <skrah at bytereef.org>
date:        Mon Nov 12 20:35:29 2012 +0100
summary:
  Backport 5db6d9ddf6e8.

files:
  Include/osdefs.h |  8 ++++++++
  1 files changed, 8 insertions(+), 0 deletions(-)


diff --git a/Include/osdefs.h b/Include/osdefs.h
--- a/Include/osdefs.h
+++ b/Include/osdefs.h
@@ -36,6 +36,14 @@
 #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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list