diff -r 3a880d640981 Include/osdefs.h --- a/Include/osdefs.h Tue Sep 18 07:21:18 2012 +0300 +++ b/Include/osdefs.h Sun Sep 23 17:45:53 2012 +0000 @@ -29,6 +29,14 @@ #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 -r 3a880d640981 Python/fileutils.c --- a/Python/fileutils.c Tue Sep 18 07:21:18 2012 +0300 +++ b/Python/fileutils.c Sun Sep 23 17:45:53 2012 +0000 @@ -1,4 +1,5 @@ #include "Python.h" +#include "osdefs.h" #ifdef MS_WINDOWS # include #endif