From 5e090fc98525308d2a86eaf5c535c3c2ba1a644c Mon Sep 17 00:00:00 2001 From: Andrew MacIntyre Date: Tue, 26 Feb 2002 11:20:01 +0000 Subject: [PATCH] OS/2 EMX port changes (Include part of patch #450267): Include/ osdefs.h // EMX promotes Un*x path separators pyport.h --- Include/osdefs.h | 6 ++++++ Include/pyport.h | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Include/osdefs.h b/Include/osdefs.h index 7a382ce82439..89e0ecbaed22 100644 --- a/Include/osdefs.h +++ b/Include/osdefs.h @@ -17,9 +17,15 @@ extern "C" { /* Mod by chrish: QNX has WATCOM, but isn't DOS */ #if !defined(__QNX__) #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2) +#if defined(PYOS_OS2) && defined(PYCC_GCC) +#define MAXPATHLEN 260 +#define SEP '/' +#define ALTSEP '\\' +#else #define SEP '\\' #define ALTSEP '/' #define MAXPATHLEN 256 +#endif #define DELIM ';' #endif #endif diff --git a/Include/pyport.h b/Include/pyport.h index 8c547295827a..271ec431a36a 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -157,6 +157,9 @@ typedef LONG_LONG Py_intptr_t; #endif #ifndef DONT_HAVE_SYS_STAT_H +#if defined(PYOS_OS2) && defined(PYCC_GCC) +#include +#endif #include #elif defined(HAVE_STAT_H) #include -- 2.47.3