Issue #15835: Define PATH_MAX on HP-UX.

This commit is contained in:
Stefan Krah 2012-11-12 20:14:36 +01:00
parent e667e98faa
commit 6df5cae49a
2 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,14 @@ extern "C" {
#endif #endif
/* Max pathname length */ /* Max pathname length */
#ifdef __hpux
#include <sys/param.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
#endif
#endif
#ifndef MAXPATHLEN #ifndef MAXPATHLEN
#if defined(PATH_MAX) && PATH_MAX > 1024 #if defined(PATH_MAX) && PATH_MAX > 1024
#define MAXPATHLEN PATH_MAX #define MAXPATHLEN PATH_MAX

View File

@ -1,4 +1,5 @@
#include "Python.h" #include "Python.h"
#include "osdefs.h"
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
# include <windows.h> # include <windows.h>
#endif #endif