1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merges r21484 from trunk into ruby_1_9_1.

* ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
	  on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2009-01-15 15:36:48 +00:00
parent 2c8f90e086
commit 336f996842
3 changed files with 7 additions and 0 deletions

View file

@ -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 03:07:28 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.

View file

@ -64,6 +64,7 @@
#include <unistd.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#include <io.h>
#endif
#include <string.h>

View file

@ -57,6 +57,7 @@
#endif
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#define snprintf _snprintf
#endif