summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-05 21:45:29 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-05 21:45:29 (GMT)
commit595d7ba06981edcddaa89c58e67300ef6d92f3c7 (patch)
tree1e0e98440e724f06a22b855505d5a783588cbf54 /Python/import.c
parent60aff2c0a61f5bdcba5d99d12cea8bb82d57b18c (diff)
downloadcpython-595d7ba06981edcddaa89c58e67300ef6d92f3c7.zip
cpython-595d7ba06981edcddaa89c58e67300ef6d92f3c7.tar.gz
cpython-595d7ba06981edcddaa89c58e67300ef6d92f3c7.tar.bz2
Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c
index aef7353..4cd8ed7 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -58,6 +58,11 @@ PERFORMANCE OF THIS SOFTWARE.
#include <sys/types.h>
#include <sys/stat.h>
+#if defined(PYCC_VACPP)
+/* VisualAge C/C++ Failed to Define MountType Field in sys/stat.h */
+#define S_IFMT (S_IFDIR|S_IFCHR|S_IFREG)
+#endif
+
#ifndef S_ISDIR
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif