diff --git a/Include/osdefs.h b/Include/osdefs.h index 6937659325a..77af9237546 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