summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src/Modules
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2024-02-20 18:48:02 +0300
committerthegeorg <[email protected]>2024-02-20 19:04:02 +0300
commitc140aae9bee1d236321521b93d2c5aa5fe7ee05c (patch)
treea0e7294a3d9c59fef62308e0ee0166a264d5e5cc /contrib/tools/python/src/Modules
parent676a0db906b78ae61a520261bb26509ee298c6cd (diff)
Disable OS/2-specific includes
f5b4da0f22a2a1fa5790298ebe33ad52c5edf6dd
Diffstat (limited to 'contrib/tools/python/src/Modules')
-rw-r--r--contrib/tools/python/src/Modules/posixmodule.c2
-rw-r--r--contrib/tools/python/src/Modules/socketmodule.c2
-rw-r--r--contrib/tools/python/src/Modules/timemodule.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/contrib/tools/python/src/Modules/posixmodule.c b/contrib/tools/python/src/Modules/posixmodule.c
index 6c147e0a867..bbfa4fcad1f 100644
--- a/contrib/tools/python/src/Modules/posixmodule.c
+++ b/contrib/tools/python/src/Modules/posixmodule.c
@@ -55,7 +55,7 @@ corresponding Unix manual entries for more information on calls.");
#define INCL_DOSERRORS
#define INCL_DOSPROCESS
#define INCL_NOPMAPI
-#include <os2.h>
+#error #include <os2.h>
#if defined(PYCC_GCC)
#include <ctype.h>
#include <io.h>
diff --git a/contrib/tools/python/src/Modules/socketmodule.c b/contrib/tools/python/src/Modules/socketmodule.c
index 013975455c4..4ab05d97b3b 100644
--- a/contrib/tools/python/src/Modules/socketmodule.c
+++ b/contrib/tools/python/src/Modules/socketmodule.c
@@ -243,7 +243,7 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
# define INCL_DOS
# define INCL_DOSERRORS
# define INCL_NOPMAPI
-# include <os2.h>
+# error #include <os2.h>
#endif
#if defined(__sgi) && _COMPILER_VERSION>700 && !_SGIAPI
diff --git a/contrib/tools/python/src/Modules/timemodule.c b/contrib/tools/python/src/Modules/timemodule.c
index 6118cdd7cf0..2470d6237d3 100644
--- a/contrib/tools/python/src/Modules/timemodule.c
+++ b/contrib/tools/python/src/Modules/timemodule.c
@@ -77,7 +77,7 @@ static long main_thread;
#if defined(PYOS_OS2)
#define INCL_DOS
#define INCL_ERRORS
-#include <os2.h>
+#error #include <os2.h>
#endif
#if defined(PYCC_VACPP)