From: Victor Stinner Date: Tue, 23 Aug 2011 08:57:32 +0000 (+0200) Subject: Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h X-Git-Tag: v3.3.0a1~1632 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=710d27e93a25637e9fad7913e79a8e3ead68a3e0;p=thirdparty%2FPython%2Fcpython.git Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h Patch written by Remi Pointel. --- diff --git a/Misc/ACKS b/Misc/ACKS index 062a77ae9af6..e7346082d789 100644 --- 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 diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 81d1ce1070fd..5878ebb0d3e8 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 +#endif + #ifndef WITH_THREAD # undef HAVE_GETHOSTBYNAME_R #endif