From 98dc065c1b96705d42c4853fdb28ff5ae64093b9 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 5 Oct 2000 19:24:26 +0000 Subject: SF "bug" 115973: patches from Norman Vine so that shared libraries and Tkinter work under Cygwin. Accepted on faith & reasonableness. --- Modules/_tkinter.c | 2 +- Python/dynload_shlib.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 34360fe..0a3b74b 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -57,7 +57,7 @@ Copyright (C) 1994 Steen Lumholt. #include #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 16f15d9..2b0e74e 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} }; -- cgit v0.12