Commit 6df5cae4 authored by Stefan Krah's avatar Stefan Krah

Issue #15835: Define PATH_MAX on HP-UX.

parent e667e98f
...@@ -29,6 +29,14 @@ extern "C" { ...@@ -29,6 +29,14 @@ extern "C" {
#endif #endif
/* Max pathname length */ /* Max pathname length */
#ifdef __hpux
#include <sys/param.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX MAXPATHLEN
#endif
#endif
#ifndef MAXPATHLEN #ifndef MAXPATHLEN
#if defined(PATH_MAX) && PATH_MAX > 1024 #if defined(PATH_MAX) && PATH_MAX > 1024
#define MAXPATHLEN PATH_MAX #define MAXPATHLEN PATH_MAX
......
#include "Python.h" #include "Python.h"
#include "osdefs.h"
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
# include <windows.h> # include <windows.h>
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment