]> granicus.if.org Git - python/commitdiff
OS/2 EMX port changes (Include part of patch #450267):
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>
Tue, 26 Feb 2002 11:20:01 +0000 (11:20 +0000)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>
Tue, 26 Feb 2002 11:20:01 +0000 (11:20 +0000)
  Include/
    osdefs.h  // EMX promotes Un*x path separators
    pyport.h

Include/osdefs.h
Include/pyport.h

index 7a382ce824397ab0e0c8cb7312136019dc4fa1a2..89e0ecbaed22d7cd672655837ee78e5c41c5466d 100644 (file)
@@ -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
index 8c547295827ad568af627d81bdb3f869b45ebec5..271ec431a36a1bf388d0b87654c01095422b9eff 100644 (file)
@@ -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 <sys/types.h>
+#endif
 #include <sys/stat.h>
 #elif defined(HAVE_STAT_H)
 #include <stat.h>