Patch #404680: disables the nis module and enables the dl module when
building under Cygwin. Makes some fixes to the dlmodule in order to compile with Cygwin.
This commit is contained in:
parent
5941d191de
commit
6efc6e7832
|
@ -9,6 +9,7 @@ from test_support import verbose,TestSkipped
|
|||
sharedlibs = [
|
||||
('/usr/lib/libc.so', 'getpid'),
|
||||
('/lib/libc.so.6', 'getpid'),
|
||||
('/usr/bin/cygwin1.dll', 'getpid'),
|
||||
]
|
||||
|
||||
for s, func in sharedlibs:
|
||||
|
|
|
@ -134,7 +134,7 @@ dl_getattr(dlobject *xp, char *name)
|
|||
|
||||
|
||||
static PyTypeObject Dltype = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /*ob_size*/
|
||||
"dl", /*tp_name*/
|
||||
sizeof(dlobject), /*tp_basicsize*/
|
||||
|
@ -199,7 +199,7 @@ insint(PyObject *d, char *name, int value)
|
|||
Py_XDECREF(v);
|
||||
}
|
||||
|
||||
void
|
||||
DL_EXPORT(void)
|
||||
initdl(void)
|
||||
{
|
||||
PyObject *m, *d, *x;
|
||||
|
@ -211,6 +211,9 @@ initdl(void)
|
|||
return;
|
||||
}
|
||||
|
||||
/* Initialize object type */
|
||||
Dltype.ob_type = &PyType_Type;
|
||||
|
||||
/* Create the module and add the functions */
|
||||
m = Py_InitModule("dl", dl_methods);
|
||||
|
||||
|
|
Loading…
Reference in New Issue