From: Guido van Rossum Date: Fri, 5 Dec 1997 21:45:29 +0000 (+0000) Subject: Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2. X-Git-Tag: v1.5b2~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=595d7ba06981edcddaa89c58e67300ef6d92f3c7;p=python Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2. --- diff --git a/Python/import.c b/Python/import.c index aef73537c5..4cd8ed74d7 100644 --- a/Python/import.c +++ b/Python/import.c @@ -58,6 +58,11 @@ PERFORMANCE OF THIS SOFTWARE. #include #include +#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