summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src/Python
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tools/python/src/Python')
-rw-r--r--contrib/tools/python/src/Python/import.c4
-rw-r--r--contrib/tools/python/src/Python/importdl.h2
2 files changed, 3 insertions, 3 deletions
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);