From 4a3a3f3bda8ab7092f85495451531c9373d6c9e1 Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Mon, 12 Nov 2012 20:35:29 +0100 Subject: [PATCH] Backport 5db6d9ddf6e8. --- Include/osdefs.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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