From: Stefan Krah Date: Mon, 12 Nov 2012 19:14:36 +0000 (+0100) Subject: Issue #15835: Define PATH_MAX on HP-UX. X-Git-Tag: v3.3.1rc1~641 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6df5cae49a6ff61ce523361d30784893e59f3837;p=python Issue #15835: Define PATH_MAX on HP-UX. --- 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 +#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 501cb8c8d6..976c04b117 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -1,4 +1,5 @@ #include "Python.h" +#include "osdefs.h" #ifdef MS_WINDOWS # include #endif