From: Tim Peters Date: Thu, 5 Oct 2000 19:24:26 +0000 (+0000) Subject: SF "bug" 115973: patches from Norman Vine so that shared libraries and X-Git-Tag: v2.0c1~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98dc065c1b96705d42c4853fdb28ff5ae64093b9;p=thirdparty%2FPython%2Fcpython.git SF "bug" 115973: patches from Norman Vine so that shared libraries and Tkinter work under Cygwin. Accepted on faith & reasonableness. --- diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 34360fe07769..0a3b74bd14fe 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 16f15d9a8147..2b0e74ee17f3 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} };