diff options
author | Victor Stinner <vstinner@wyplay.com> | 2011-08-23 08:57:32 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@wyplay.com> | 2011-08-23 08:57:32 (GMT) |
commit | 710d27e93a25637e9fad7913e79a8e3ead68a3e0 (patch) | |
tree | 7154e80d85353ffe770ae72ecb8ab23532b78070 /Modules/socketmodule.c | |
parent | aec2f21f71c33de5a3cd377a63371fcc0894ba4c (diff) | |
download | cpython-710d27e93a25637e9fad7913e79a8e3ead68a3e0.zip cpython-710d27e93a25637e9fad7913e79a8e3ead68a3e0.tar.gz cpython-710d27e93a25637e9fad7913e79a8e3ead68a3e0.tar.bz2 |
Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h
Patch written by Remi Pointel.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 81d1ce1..5878ebb 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 <sys/uio.h> +#endif + #ifndef WITH_THREAD # undef HAVE_GETHOSTBYNAME_R #endif |