[Python-checkins] cpython: Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h

victor.stinner python-checkins at python.org
Tue Aug 23 10:57:50 CEST 2011


http://hg.python.org/cpython/rev/b4b84e87dc6b
changeset:   72045:b4b84e87dc6b
user:        Victor Stinner <vstinner at wyplay.com>
date:        Tue Aug 23 10:57:32 2011 +0200
summary:
  Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h

Patch written by Remi Pointel.

files:
  Misc/ACKS              |  1 +
  Modules/socketmodule.c |  4 ++++
  2 files changed, 5 insertions(+), 0 deletions(-)


diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -748,6 +748,7 @@
 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
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list