Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fda3c3d

Browse files
committed
[Patch #462255, from Jason Tishler] Re-enables building the resouce
module on the Cygwin platform.
1 parent 83eeef4 commit fda3c3d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/resource.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ ins(PyObject *dict, char *name, int value)
169169
/* errors will be checked by initresource() */
170170
}
171171

172-
void initresource(void)
172+
DL_EXPORT(void)
173+
initresource(void)
173174
{
174175
PyObject *m, *d;
175176

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ def detect_modules(self):
429429
# Steen Lumholt's termios module
430430
exts.append( Extension('termios', ['termios.c']) )
431431
# Jeremy Hylton's rlimit interface
432-
if platform not in ['cygwin']:
433-
exts.append( Extension('resource', ['resource.c']) )
432+
exts.append( Extension('resource', ['resource.c']) )
434433

435434
# Sun yellow pages. Some systems have the functions in libc.
436435
if platform not in ['cygwin']:

0 commit comments

Comments
 (0)