summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python/src')
-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
-rw-r--r--contrib/tools/python/src/Python/import.c4
-rw-r--r--contrib/tools/python/src/Python/importdl.h2
5 files changed, 6 insertions, 6 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)
diff --git a/contrib/tools/python/src/Python/import.c b/contrib/tools/python/src/Python/import.c
index dbf89b763f6..d59c1549bf0 100644
--- a/contrib/tools/python/src/Python/import.c
+++ b/contrib/tools/python/src/Python/import.c
@@ -1701,10 +1701,10 @@ PyAPI_FUNC(int) _PyImport_IsScript(struct filedescr * fd)
#define INCL_DOS
#define INCL_DOSERRORS
#define INCL_NOPMAPI
-#include <os2.h>
+#error #include <os2.h>
#elif defined(RISCOS)
-#include "oslib/osfscontrol.h"
+#error #include "oslib/osfscontrol.h"
#endif
static int
diff --git a/contrib/tools/python/src/Python/importdl.h b/contrib/tools/python/src/Python/importdl.h
index b4d21be6f01..ad577fe4ea0 100644
--- a/contrib/tools/python/src/Python/importdl.h
+++ b/contrib/tools/python/src/Python/importdl.h
@@ -39,7 +39,7 @@ extern PyObject *_PyImport_LoadDynamicModule(char *name, char *pathname,
typedef FARPROC dl_funcptr;
#else
#if defined(PYOS_OS2) && !defined(PYCC_GCC)
-#include <os2def.h>
+#error #include <os2def.h>
typedef int (* APIENTRY dl_funcptr)();
#else
typedef void (*dl_funcptr)(void);