diff options
| author | Bjorn Andersson <bjorn@kryo.se> | 2018-09-26 06:47:52 -0700 |
|---|---|---|
| committer | Tal Einat <taleinat+github@gmail.com> | 2018-09-26 16:47:52 +0300 |
| commit | bb8165172ac2ef8c7092e8e82928cc7f5f310ab3 (patch) | |
| tree | 7674fc11d7cbb19a938d05e4a95d8e56446fb274 /Modules/socketmodule.h | |
| parent | 2aaf98c16ae3070378de523a173e29644037d8bd (diff) | |
| download | cpython-git-bb8165172ac2ef8c7092e8e82928cc7f5f310ab3.tar.gz | |
bpo-31425: Expose AF_QIPCRTR in socket module (GH-3706)
The AF_QIPCRTR address family was introduced in Linux v4.7.
Co-authored-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'Modules/socketmodule.h')
| -rw-r--r-- | Modules/socketmodule.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 0b2edc1587..dff1f8f4e9 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -54,6 +54,15 @@ typedef int socklen_t; # undef AF_NETLINK #endif +#ifdef HAVE_LINUX_QRTR_H +# ifdef HAVE_ASM_TYPES_H +# include <asm/types.h> +# endif +# include <linux/qrtr.h> +#else +# undef AF_QIPCRTR +#endif + #ifdef HAVE_BLUETOOTH_BLUETOOTH_H #include <bluetooth/bluetooth.h> #include <bluetooth/rfcomm.h> @@ -203,6 +212,9 @@ typedef union sock_addr { #ifdef HAVE_SOCKADDR_ALG struct sockaddr_alg alg; #endif +#ifdef AF_QIPCRTR + struct sockaddr_qrtr sq; +#endif #ifdef AF_VSOCK struct sockaddr_vm vm; #endif |
