mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
4d58fdb1a6
commit
3b1f2c35f4
3 changed files with 55 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue