From: Andrew M. Kuchling Date: Mon, 17 Sep 2001 16:19:16 +0000 (+0000) Subject: [Patch #462255, from Jason Tishler] Re-enables building the resouce X-Git-Tag: v2.2.1c1~1779 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fda3c3ddae776dc23e55327e481d3bd5bec0536a;p=thirdparty%2FPython%2Fcpython.git [Patch #462255, from Jason Tishler] Re-enables building the resouce module on the Cygwin platform. --- diff --git a/Modules/resource.c b/Modules/resource.c index 9f2d9c06a747..43ed1dea9230 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -169,7 +169,8 @@ ins(PyObject *dict, char *name, int value) /* errors will be checked by initresource() */ } -void initresource(void) +DL_EXPORT(void) +initresource(void) { PyObject *m, *d; diff --git a/setup.py b/setup.py index 912a03129581..9cb43efe1c94 100644 --- a/setup.py +++ b/setup.py @@ -429,8 +429,7 @@ class PyBuildExt(build_ext): # Steen Lumholt's termios module exts.append( Extension('termios', ['termios.c']) ) # Jeremy Hylton's rlimit interface - if platform not in ['cygwin']: - exts.append( Extension('resource', ['resource.c']) ) + exts.append( Extension('resource', ['resource.c']) ) # Sun yellow pages. Some systems have the functions in libc. if platform not in ['cygwin']: