diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-02-20 18:48:02 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-02-20 19:04:02 +0300 |
commit | c140aae9bee1d236321521b93d2c5aa5fe7ee05c (patch) | |
tree | a0e7294a3d9c59fef62308e0ee0166a264d5e5cc /contrib/tools/python | |
parent | 676a0db906b78ae61a520261bb26509ee298c6cd (diff) | |
download | ydb-c140aae9bee1d236321521b93d2c5aa5fe7ee05c.tar.gz |
Disable OS/2-specific includes
f5b4da0f22a2a1fa5790298ebe33ad52c5edf6dd
Diffstat (limited to 'contrib/tools/python')
-rw-r--r-- | contrib/tools/python/src/Modules/posixmodule.c | 2 | ||||
-rw-r--r-- | contrib/tools/python/src/Modules/socketmodule.c | 2 | ||||
-rw-r--r-- | contrib/tools/python/src/Modules/timemodule.c | 2 | ||||
-rw-r--r-- | contrib/tools/python/src/Python/import.c | 4 | ||||
-rw-r--r-- | contrib/tools/python/src/Python/importdl.h | 2 |
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 6c147e0a86..bbfa4fcad1 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 013975455c..4ab05d97b3 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 6118cdd7cf..2470d6237d 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 dbf89b763f..d59c1549bf 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 b4d21be6f0..ad577fe4ea 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); |