diff options
| author | Stefan Krah <skrah@bytereef.org> | 2012-11-12 20:24:09 +0100 |
|---|---|---|
| committer | Stefan Krah <skrah@bytereef.org> | 2012-11-12 20:24:09 +0100 |
| commit | cabe5e76cfca05fc7dc4b67c252af57ce8d74474 (patch) | |
| tree | f4461cc86c7138dfe9c3c2b351a612e611038614 | |
| parent | b43b7fb338272a1c2191cca475d242e2f4b84e0d (diff) | |
| parent | 014e63e6c4fa6e9aab042d8a1f6649fdbda602a4 (diff) | |
| download | cpython-cabe5e76cfca05fc7dc4b67c252af57ce8d74474.tar.gz | |
Merge 3.3.
| -rw-r--r-- | Include/osdefs.h | 8 | ||||
| -rw-r--r-- | Python/fileutils.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Include/osdefs.h b/Include/osdefs.h index ed88da122f..0c2e34b879 100644 --- a/Include/osdefs.h +++ b/Include/osdefs.h @@ -23,6 +23,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 diff --git a/Python/fileutils.c b/Python/fileutils.c index 526751d5ad..2e25aae075 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -1,4 +1,5 @@ #include "Python.h" +#include "osdefs.h" #ifdef MS_WINDOWS # include <windows.h> #endif |
