]> granicus.if.org Git - python/commitdiff
[Patch #462255, from Jason Tishler] Re-enables building the resouce
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 17 Sep 2001 16:19:16 +0000 (16:19 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 17 Sep 2001 16:19:16 +0000 (16:19 +0000)
    module on the Cygwin platform.

Modules/resource.c
setup.py

index 9f2d9c06a747ccf51c6bfffe29666afc4da393fc..43ed1dea923008366a993b528ff7faffa4f47ecc 100644 (file)
@@ -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;
 
index 912a03129581f526987c151e9da2830467fd3182..9cb43efe1c94f8cb2aaf1b9aeda790909360b72e 100644 (file)
--- 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']: