mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
654e94e1c9
commit
fc8835a5bb
3 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 13 12:10:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
|
||||
on Windows.
|
||||
|
||||
Tue Jan 13 09:49:49 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* ext/socket/socket.c: removed warning about unused variable 'rai'.
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
#include <unistd.h>
|
||||
#else
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <io.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
#endif
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue