Brett Cannon <br...@python.org> added the comment: This is now generating a compiler warning under OS X because the older POSIX standard is followed where socklen_t can be unsigned.
Attached is a patch to cast msg_controllen to a size big enough to hold either signed 2**31-1 or unsigned 2**32-1 (i.e., long long) to silence the compiler warning. I would check the patch in myself but test_socket is failing under OS X right now so I can't verify I didn't do something extremely stupid with the cast somehow. ---------- nosy: +brett.cannon resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open Added file: http://bugs.python.org/file23080/socket_compiler_warning.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12837> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com