From: Stefan Krah Date: Mon, 12 Nov 2012 19:35:29 +0000 (+0100) Subject: Backport 5db6d9ddf6e8. X-Git-Tag: v2.7.4rc1~379 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a3a3f3bda8ab7092f85495451531c9373d6c9e1;p=thirdparty%2FPython%2Fcpython.git Backport 5db6d9ddf6e8. --- diff --git a/Include/osdefs.h b/Include/osdefs.h index 6937659325af..77af92375461 100644 --- a/Include/osdefs.h +++ b/Include/osdefs.h @@ -36,6 +36,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