diff options
-rw-r--r-- | Modules/_tkinter.c | 2 | ||||
-rw-r--r-- | Python/dynload_shlib.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 34360fe077..0a3b74bd14 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -57,7 +57,7 @@ Copyright (C) 1994 Steen Lumholt. #include <Menus.h> #endif -#if !defined(MS_WINDOWS) +#if !(defined(MS_WINDOWS) || defined(__CYGWIN__)) #define HAVE_CREATEFILEHANDLER #endif diff --git a/Python/dynload_shlib.c b/Python/dynload_shlib.c index 16f15d9a81..2b0e74ee17 100644 --- a/Python/dynload_shlib.c +++ b/Python/dynload_shlib.c @@ -22,8 +22,13 @@ const struct filedescr _PyImport_DynLoadFiletab[] = { +#ifdef __CYGWIN__ + {".pyd", "rb", C_EXTENSION}, + {".dll", "rb", C_EXTENSION}, +#else {".so", "rb", C_EXTENSION}, {"module.so", "rb", C_EXTENSION}, +#endif {0, 0} }; |