[前][次][番号順一覧][スレッド一覧]

ruby-changes:66253

From: Sutou <ko1@a...>
Date: Tue, 18 May 2021 12:49:05 +0900 (JST)
Subject: [ruby-changes:66253] 79717f81f8 (master): [ruby/fiddle] windows: link to ws2_32 for WSAGetLastError()

https://git.ruby-lang.org/ruby.git/commit/?id=79717f81f8

From 79717f81f8ba24960cca6c934d00c72db64139ed Mon Sep 17 00:00:00 2001
From: Sutou Kouhei <kou@c...>
Date: Mon, 19 Apr 2021 16:45:11 +0900
Subject: [ruby/fiddle] windows: link to ws2_32 for WSAGetLastError()

https://github.com/ruby/fiddle/commit/e9955d74ae
---
 ext/fiddle/extconf.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index 562b758..6ca6853 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -200,6 +200,8 @@ elsif have_header "windows.h" https://github.com/ruby/ruby/blob/trunk/ext/fiddle/extconf.rb#L200
   %w{ LoadLibrary FreeLibrary GetProcAddress }.each do |func|
     abort "missing function #{func}" unless have_func(func)
   end
+
+  have_library "ws2_32"
 end
 
 have_const('FFI_STDCALL', ffi_header)
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]