mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #13777: Add PF_SYSTEM sockets on OS X.
Patch by Michael Goderbauer.
This commit is contained in:
parent
61c4e10035
commit
9d6c66933a
8 changed files with 141 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue