<div dir="ltr">I am attempting to add the Python "socket" module to my iOS application, however compilation fails because of two missing header files:<div><br></div><div>sys/sys_domain.h</div><div>sys/kern_control.h</div><div><br></div><div>Included from: socketmodule.h</div><div><br></div><div>Build Environment:</div><div><br></div><div><font face="monospace, monospace">Xcode     : 7.1</font></div><div><font face="monospace, monospace">Python    : 3.4.3</font></div><div><font face="monospace, monospace">Qt        : 5.5.1</font></div><div><font face="monospace, monospace">PyQt      : 5.5.1</font></div><div><font face="monospace, monospace">pyqtdeploy: 1.1</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Compile OS: OSX Yosemite (10.10.5)</font></div><div><font face="monospace, monospace">Target    : ios-64  (iPad mini 4)</font></div><div><font face="monospace, monospace">Target OS : 9.1</font></div><div><br></div><div>These header files do not exist in Xcode for the iphoneos platform (though it does exist for OSX and the iPhone Simulator).  This can be verified with the following command:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace, monospace">find /Applications/Xcode.app -name sys_domain.h -o -name kern_control.h</font></div></blockquote><div><br></div><div>Examining source code for pyqtdeploy, I found the file <font face="monospace, monospace">pyqtdeploy/python/pyconfig.py </font>sets the #define which control these features for each platform.  Removing "ios=1" for each header file seems fixes the problem.  See the attached patch file.</div><div><br></div><div>I have tested this patch both against the version 1.1 branch and against the latest code in the tip of the mercurial repository.</div><div><br></div><div>Can this patch please be included in the next release of pyqtdeploy?</div><div><br></div><div>Thank you,</div><div>David</div></div>