Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.h @ 74741:aa3680d2c24d
Issue #13777: Add PF_SYSTEM sockets on OS X.
Patch by Michael Goderbauer.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 03 Feb 2012 17:44:58 +0100 |
| parents | 683a1b1ff15d |
| children | dea15868963f |
line wrap: on
line diff
--- a/Modules/socketmodule.h Fri Feb 03 02:46:37 2012 +0100 +++ b/Modules/socketmodule.h Fri Feb 03 17:44:58 2012 +0100 @@ -80,6 +80,13 @@ #include <linux/can/raw.h> #endif +#ifdef HAVE_SYS_SYS_DOMAIN_H +#include <sys/sys_domain.h> +#endif +#ifdef HAVE_SYS_KERN_CONTROL_H +#include <sys/kern_control.h> +#endif + #ifndef Py__SOCKET_H #define Py__SOCKET_H #ifdef __cplusplus @@ -138,6 +145,9 @@ #ifdef HAVE_LINUX_CAN_H struct sockaddr_can can; #endif +#ifdef HAVE_SYS_KERN_CONTROL_H + struct sockaddr_ctl ctl; +#endif } sock_addr_t; /* The object holding a socket. It holds some extra information,
