summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn@kryo.se>2018-09-26 13:47:52 (GMT)
committerTal Einat <taleinat+github@gmail.com>2018-09-26 13:47:52 (GMT)
commitbb8165172ac2ef8c7092e8e82928cc7f5f310ab3 (patch)
tree7674fc11d7cbb19a938d05e4a95d8e56446fb274 /configure
parent2aaf98c16ae3070378de523a173e29644037d8bd (diff)
downloadcpython-bb8165172ac2ef8c7092e8e82928cc7f5f310ab3.zip
cpython-bb8165172ac2ef8c7092e8e82928cc7f5f310ab3.tar.gz
cpython-bb8165172ac2ef8c7092e8e82928cc7f5f310ab3.tar.bz2
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 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 38546d6..9d2c4e4 100755
--- a/configure
+++ b/configure
@@ -8023,6 +8023,28 @@ fi
done
+# On Linux, qrtr.h requires asm/types.h
+for ac_header in linux/qrtr.h
+do :
+ ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
+#ifdef HAVE_ASM_TYPES_H
+#include <asm/types.h>
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+"
+if test "x$ac_cv_header_linux_qrtr_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LINUX_QRTR_H 1
+_ACEOF
+
+fi
+
+done
+
+
for ac_header in linux/vm_sockets.h
do :
ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "