Repair python3 build under Homebrew Python 3.4 with OSX 10.9.

This commit is contained in:
Mr. Snow 2014-07-21 14:17:58 +10:00 committed by Thomas Bernard
parent 626cd2cd6c
commit f3fb046e45
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ build/
Makefile.bak
miniupnpcstrings.h
pythonmodule
pythonmodule3
upnpc-shared
upnpc-static
minihttptestserver

View File

@ -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