Backport 5db6d9ddf6e8.

This commit is contained in:
Stefan Krah 2012-11-12 20:35:29 +01:00
parent 8a0d58bb3d
commit 4a3a3f3bda
1 changed files with 8 additions and 0 deletions

View File

@ -36,6 +36,14 @@ extern "C" {
#endif
/* Max pathname length */
#ifdef __hpux
#include <sys/param.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
#endif
#endif
#ifndef MAXPATHLEN
#if defined(PATH_MAX) && PATH_MAX > 1024
#define MAXPATHLEN PATH_MAX