issue #1746656: Fix for OS X. configure and #include changes so that the socket

module compiles again on OS X with its more annoying #include requirements.
This commit is contained in:
Gregory P. Smith 2011-05-15 12:18:23 -07:00
parent 4d58fdb1a6
commit 3b1f2c35f4
3 changed files with 55 additions and 2 deletions

View file

@ -256,6 +256,14 @@ if_indextoname(index) -- returns the corresponding interface name\n\
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif
/* Generic socket object definitions and includes */
#define PySocket_BUILDING_SOCKET
#include "socketmodule.h"