]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h
authorVictor Stinner <vstinner@wyplay.com>
Tue, 23 Aug 2011 08:57:32 +0000 (10:57 +0200)
committerVictor Stinner <vstinner@wyplay.com>
Tue, 23 Aug 2011 08:57:32 +0000 (10:57 +0200)
Patch written by Remi Pointel.

Misc/ACKS
Modules/socketmodule.c

index 062a77ae9af6cb2fe06c0aa5eed30a087e925a65..e7346082d789b1043ce0b190ed338c7641b035c1 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -748,6 +748,7 @@ Zach Pincus
 Michael Piotrowski
 Antoine Pitrou
 Jean-François Piéronne
+Remi Pointel
 Guilherme Polo
 Michael Pomraning
 Iustin Pop
index 81d1ce1070fd87fd815874dcddf4ed09f1043d8e..5878ebb0d3e8d40f2466e5df0ed5ecddd58b278b 100644 (file)
@@ -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