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 Makefile.bak
miniupnpcstrings.h miniupnpcstrings.h
pythonmodule pythonmodule
pythonmodule3
upnpc-shared upnpc-shared
upnpc-static upnpc-static
minihttptestserver minihttptestserver

View File

@ -599,7 +599,7 @@ initminiupnpc(void)
UPnPType.tp_new = PyType_GenericNew; UPnPType.tp_new = PyType_GenericNew;
#endif #endif
if (PyType_Ready(&UPnPType) < 0) if (PyType_Ready(&UPnPType) < 0)
return; return 0;
#if PY_MAJOR_VERSION >= 3 #if PY_MAJOR_VERSION >= 3
m = PyModule_Create(&moduledef); m = PyModule_Create(&moduledef);