summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-14 22:32:33 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-05-14 22:32:33 (GMT)
commit58e0a8c13015627b5cd4abff6563bef02532596c (patch)
tree7734b82cb756f5a4e534678d6b236b6fb51f5ab5 /Modules/posixmodule.c
parent460f0691dff8e8f36b325a87f1af25ca6571ddad (diff)
downloadcpython-58e0a8c13015627b5cd4abff6563bef02532596c.zip
cpython-58e0a8c13015627b5cd4abff6563bef02532596c.tar.gz
cpython-58e0a8c13015627b5cd4abff6563bef02532596c.tar.bz2
SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 430a44a..3a85798 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -63,12 +63,6 @@ corresponding Unix manual entries for more information on calls.";
#ifdef __BORLANDC__ /* Borland compiler */
#define HAVE_EXECV 1
#define HAVE_GETCWD 1
-#define HAVE_GETEGID 1
-#define HAVE_GETEUID 1
-#define HAVE_GETGID 1
-#define HAVE_GETPPID 1
-#define HAVE_GETUID 1
-#define HAVE_KILL 1
#define HAVE_OPENDIR 1
#define HAVE_PIPE 1
#define HAVE_POPEN 1
@@ -152,7 +146,11 @@ extern int rmdir(char *);
extern int chdir(const char *);
extern int rmdir(const char *);
#endif
+#ifdef __BORLANDC__
+extern int chmod(const char *, int);
+#else
extern int chmod(const char *, mode_t);
+#endif
extern int chown(const char *, uid_t, gid_t);
extern char *getcwd(char *, int);
extern char *strerror(int);
@@ -5666,18 +5664,18 @@ all_ins(PyObject *d)
}
-#if ( defined(_MSC_VER) || defined(__WATCOMC__) ) && !defined(__QNX__)
+#if (defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__)) && !defined(__QNX__)
#define INITFUNC initnt
#define MODNAME "nt"
-#else
-#if defined(PYOS_OS2)
+
+#elif defined(PYOS_OS2)
#define INITFUNC initos2
#define MODNAME "os2"
+
#else
#define INITFUNC initposix
#define MODNAME "posix"
#endif
-#endif
DL_EXPORT(void)
INITFUNC(void)