Repair python3 build under Homebrew Python 3.4 with OSX 10.9.
This commit is contained in:
parent
626cd2cd6c
commit
f3fb046e45
|
@ -8,6 +8,7 @@ build/
|
|||
Makefile.bak
|
||||
miniupnpcstrings.h
|
||||
pythonmodule
|
||||
pythonmodule3
|
||||
upnpc-shared
|
||||
upnpc-static
|
||||
minihttptestserver
|
||||
|
|
|
@ -599,7 +599,7 @@ initminiupnpc(void)
|
|||
UPnPType.tp_new = PyType_GenericNew;
|
||||
#endif
|
||||
if (PyType_Ready(&UPnPType) < 0)
|
||||
return;
|
||||
return 0;
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
m = PyModule_Create(&moduledef);
|
||||
|
@ -610,7 +610,7 @@ initminiupnpc(void)
|
|||
|
||||
Py_INCREF(&UPnPType);
|
||||
PyModule_AddObject(m, "UPnP", (PyObject *)&UPnPType);
|
||||
|
||||
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
return m;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue