mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/extconf.rb: include <windows.h>, <winsock.h> on _WIN32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e7daa72a6a
commit
71e36853ee
2 changed files with 23 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Apr 19 16:22:55 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/extconf.rb: include <windows.h>, <winsock.h> on _WIN32.
|
||||||
|
|
||||||
Fri Apr 19 14:57:44 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
Fri Apr 19 14:57:44 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* re.c (rb_reg_to_s): remove redundant shy group.
|
* re.c (rb_reg_to_s): remove redundant shy group.
|
||||||
|
|
|
@ -157,11 +157,16 @@ EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
if try_link(<<EOF)
|
if try_link(<<EOF)
|
||||||
#include <sys/types.h>
|
#ifdef _WIN32
|
||||||
#include <netdb.h>
|
# include <windows.h>
|
||||||
#include <string.h>
|
# include <winsock.h>
|
||||||
#include <sys/socket.h>
|
#endif
|
||||||
#include <netinet/in.h>
|
# include <sys/types.h>
|
||||||
|
# include <netdb.h>
|
||||||
|
# include <string.h>
|
||||||
|
# include <sys/socket.h>
|
||||||
|
# include <netinet/in.h>
|
||||||
|
#endif
|
||||||
int
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
@ -175,10 +180,15 @@ EOF
|
||||||
end
|
end
|
||||||
|
|
||||||
if try_link(<<EOF)
|
if try_link(<<EOF)
|
||||||
#include <sys/types.h>
|
#ifdef _WIN32
|
||||||
#include <netdb.h>
|
# include <windows.h>
|
||||||
#include <string.h>
|
# include <winsock.h>
|
||||||
#include <sys/socket.h>
|
#else
|
||||||
|
# include <sys/types.h>
|
||||||
|
# include <netdb.h>
|
||||||
|
# include <string.h>
|
||||||
|
# include <sys/socket.h>
|
||||||
|
#endif
|
||||||
int
|
int
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue