diff Modules/socketmodule.c @ 72045:b4b84e87dc6b

Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h Patch written by Remi Pointel.
author Victor Stinner <vstinner@wyplay.com>
date Tue, 23 Aug 2011 10:57:32 +0200
parents 9fc5231c36e0
children 4736e172fa61
line wrap: on
line diff
--- a/Modules/socketmodule.c	Tue Aug 23 00:58:21 2011 +0200
+++ b/Modules/socketmodule.c	Tue Aug 23 10:57:32 2011 +0200
@@ -156,6 +156,10 @@
 # undef HAVE_GETHOSTBYNAME_R_6_ARG
 #endif
 
+#if defined(__OpenBSD__)
+# include <sys/uio.h>
+#endif
+
 #ifndef WITH_THREAD
 # undef HAVE_GETHOSTBYNAME_R
 #endif