summaryrefslogtreecommitdiffstats
path: root/Mac/mwerks
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-06-02 21:18:09 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-06-02 21:18:09 (GMT)
commit8334dc1e6bf607048f7ee04dcff9f20da7c137fd (patch)
tree33adcd228fe8a3ba59e1ef9f89c243ca2c8bb5e8 /Mac/mwerks
parent8f14b7cd94cd4e12d08b92a5aee5a485a2ea5af8 (diff)
downloadcpython-8334dc1e6bf607048f7ee04dcff9f20da7c137fd.zip
cpython-8334dc1e6bf607048f7ee04dcff9f20da7c137fd.tar.gz
cpython-8334dc1e6bf607048f7ee04dcff9f20da7c137fd.tar.bz2
Made compatible with MSL Carbon libraries.
Diffstat (limited to 'Mac/mwerks')
-rw-r--r--Mac/mwerks/errno_unix.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/Mac/mwerks/errno_unix.h b/Mac/mwerks/errno_unix.h
index 2e6f171..e4159be 100644
--- a/Mac/mwerks/errno_unix.h
+++ b/Mac/mwerks/errno_unix.h
@@ -29,24 +29,33 @@ PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
+/*
+** There are various sources of unix-like error numbers: GUSI headers,
+** MSL headers and Carbon-specific MSL headers. The later are triggered,
+** apparently, by the _POSIX define.
+*/
#ifndef USE_GUSI2
#define ENOTDIR (-120)
#ifndef __MSL__
#define EACCES (-54)
#endif
+#ifndef _POSIX
#define EEXIST (-48)
-#define EBUSY (-47)
-#define EROFS (-44)
#define ENOENT (-43)
#define ENFILE (-42)
-#define EIO (-36)
#define ENOSPC (-34)
+#define EIO (-36)
+#endif
+#define EBUSY (-47)
+#define EROFS (-44)
#endif
#define ESRCH 3
#define EINTR 4
-#define EBADF 9
#define ENODEV 19
+#ifndef _POSIX
+#define EBADF 9
#define EINVAL 22
#define EMFILE 24
+#endif