diff options
| author | Stefan Krah <skrah@bytereef.org> | 2012-11-12 20:14:36 +0100 |
|---|---|---|
| committer | Stefan Krah <skrah@bytereef.org> | 2012-11-12 20:14:36 +0100 |
| commit | 014e63e6c4fa6e9aab042d8a1f6649fdbda602a4 (patch) | |
| tree | 90717eedeaadf4dd988e9d4ad7713cf25cb1704e /Include | |
| parent | 6b022d367a9f633b4ecaffe9a85053fbc1647adf (diff) | |
| download | cpython-014e63e6c4fa6e9aab042d8a1f6649fdbda602a4.tar.gz | |
Issue #15835: Define PATH_MAX on HP-UX.
Diffstat (limited to 'Include')
| -rw-r--r-- | Include/osdefs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/osdefs.h b/Include/osdefs.h index 90b430a635..05c0c8ea4a 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 |
