mirror of https://github.com/python/cpython
Issue #15835: Define PATH_MAX on HP-UX.
This commit is contained in:
parent
e667e98faa
commit
6df5cae49a
|
@ -29,6 +29,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
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "Python.h"
|
||||
#include "osdefs.h"
|
||||
#ifdef MS_WINDOWS
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue