summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@wyplay.com>2011-08-23 08:57:32 (GMT)
committerVictor Stinner <vstinner@wyplay.com>2011-08-23 08:57:32 (GMT)
commit710d27e93a25637e9fad7913e79a8e3ead68a3e0 (patch)
tree7154e80d85353ffe770ae72ecb8ab23532b78070 /Modules/socketmodule.c
parentaec2f21f71c33de5a3cd377a63371fcc0894ba4c (diff)
downloadcpython-710d27e93a25637e9fad7913e79a8e3ead68a3e0.zip
cpython-710d27e93a25637e9fad7913e79a8e3ead68a3e0.tar.gz
cpython-710d27e93a25637e9fad7913e79a8e3ead68a3e0.tar.bz2
Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h
Patch written by Remi Pointel.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 81d1ce1..5878ebb 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -156,6 +156,10 @@ if_indextoname(index) -- return the corresponding interface name\n\
# undef HAVE_GETHOSTBYNAME_R_6_ARG
#endif
+#if defined(__OpenBSD__)
+# include <sys/uio.h>
+#endif
+
#ifndef WITH_THREAD
# undef HAVE_GETHOSTBYNAME_R
#endif