diff --git a/Include/osdefs.h b/Include/osdefs.h index ed88da122fe..0c2e34b8795 100644 --- a/Include/osdefs.h +++ b/Include/osdefs.h @@ -23,6 +23,14 @@ extern "C" { #endif /* Max pathname length */ +#ifdef __hpux +#include +#include +#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 526751d5add..2e25aae0755 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -1,4 +1,5 @@ #include "Python.h" +#include "osdefs.h" #ifdef MS_WINDOWS # include #endif