Skip to content

Commit

Permalink
Close python#12826: fix socketmodule.c for OpenBSD, include sys/uio.h
Browse files Browse the repository at this point in the history
Patch written by Remi Pointel.
  • Loading branch information
vstinner committed Aug 23, 2011
1 parent aec2f21 commit 710d27e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ Zach Pincus
Michael Piotrowski
Antoine Pitrou
Jean-François Piéronne
Remi Pointel
Guilherme Polo
Michael Pomraning
Iustin Pop
Expand Down
4 changes: 4 additions & 0 deletions Modules/socketmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 710d27e

Please sign in to comment.