summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-09-30 16:19:48 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-09-30 16:19:48 (GMT)
commit21ee4091e10c6f05360bbb60e49aa3639408a612 (patch)
treec00517000f57a88877b852bb6e6b1d4a1c37e1f2 /Modules
parent174aa49a88336713cd2231e9fe9110b8fb089d6c (diff)
downloadcpython-21ee4091e10c6f05360bbb60e49aa3639408a612.zip
cpython-21ee4091e10c6f05360bbb60e49aa3639408a612.tar.gz
cpython-21ee4091e10c6f05360bbb60e49aa3639408a612.tar.bz2
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c2
-rw-r--r--Modules/_hotshot.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 65f60f0..aab24cf 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -124,7 +124,7 @@ extern int setupterm(char *,int,int *);
#include <term.h>
#endif
-#if !defined(HAVE_NCURSES_H) && (defined(sgi) || defined(__sun))
+#if !defined(HAVE_NCURSES_H) && (defined(sgi) || defined(__sun) || defined(SCO5))
#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
typedef chtype attr_t; /* No attr_t type is available */
#endif
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c
index 1908a2d..37879b9 100644
--- a/Modules/_hotshot.c
+++ b/Modules/_hotshot.c
@@ -64,6 +64,8 @@ typedef struct timeval hs_time;
#ifndef PATH_MAX
# ifdef MAX_PATH
# define PATH_MAX MAX_PATH
+# elif defined (_POSIX_PATH_MAX)
+# define PATH_MAX _POSIX_PATH_MAX
# else
# error "Need a defn. for PATH_MAX in _hotshot.c"
# endif