diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-02-03 16:44:58 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-02-03 16:44:58 (GMT) |
commit | 9d6c66933a30d938bd883039b778266123500adf (patch) | |
tree | be03b235a350d59048f8fb73db560ad7805001f6 /Modules/socketmodule.h | |
parent | 61c4e10035aa1ffe5c0d78e5b918b8df4e20a263 (diff) | |
download | cpython-9d6c66933a30d938bd883039b778266123500adf.zip cpython-9d6c66933a30d938bd883039b778266123500adf.tar.gz cpython-9d6c66933a30d938bd883039b778266123500adf.tar.bz2 |
Issue #13777: Add PF_SYSTEM sockets on OS X.
Patch by Michael Goderbauer.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r-- | Modules/socketmodule.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 59d4cb1..0435878 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -80,6 +80,13 @@ typedef int socklen_t; #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 @@ typedef union sock_addr { #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, |