From c1241cd2ed230573bb81b52173d6cd2bd91176f2 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 9 Jun 1999 09:21:37 +0000 Subject: thread bugs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/extconf.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ext/socket/extconf.rb') diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 37d8de5cbb..1e41c02261 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -6,8 +6,11 @@ case PLATFORM when /mswin32/ test_func = "WSACleanup" have_library("wsock32", "WSACleanup") -when /cygwin32/ +when /cygwin/ + $LDFLAGS << " -L/usr/lib" if File.directory?("/usr/lib") + $CFLAGS << " -I/usr/include" test_func = "socket" + have_library("bind", "gethostbyaddr") when /beos/ test_func = "socket" have_library("net", "socket") @@ -252,8 +255,8 @@ if have_getaddrinfo $CFLAGS="-DHAVE_GETADDRINFO "+$CFLAGS else $CFLAGS="-I. "+$CFLAGS - $objs += "getaddrinfo.o" - $objs += "getnameinfo.o" + $objs += ["getaddrinfo.o"] + $objs += ["getnameinfo.o"] have_func("inet_ntop") or have_func("inet_ntoa") have_func("inet_pton") or have_func("inet_aton") end -- cgit v1.2.3