From 710d27e93a25637e9fad7913e79a8e3ead68a3e0 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 23 Aug 2011 10:57:32 +0200 Subject: [PATCH] Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h Patch written by Remi Pointel. --- Misc/ACKS | 1 + Modules/socketmodule.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Misc/ACKS b/Misc/ACKS index 062a77ae9af..e7346082d78 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 81d1ce1070f..5878ebb0d3e 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