Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6df5cae

Browse files
author
Stefan Krah
committed
Issue #15835: Define PATH_MAX on HP-UX.
1 parent e667e98 commit 6df5cae

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

Include/osdefs.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ extern "C" {
2929
#endif
3030

3131
/* Max pathname length */
32+
#ifdef __hpux
33+
#include <sys/param.h>
34+
#include <limits.h>
35+
#ifndef PATH_MAX
36+
#define PATH_MAX MAXPATHLEN
37+
#endif
38+
#endif
39+
3240
#ifndef MAXPATHLEN
3341
#if defined(PATH_MAX) && PATH_MAX > 1024
3442
#define MAXPATHLEN PATH_MAX

Python/fileutils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "Python.h"
2+
#include "osdefs.h"
23
#ifdef MS_WINDOWS
34
# include <windows.h>
45
#endif

0 commit comments

Comments
 (0)