From 79717f81f8ba24960cca6c934d00c72db64139ed Mon Sep 17 00:00:00 2001 From: Sutou Kouhei 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(+) (limited to 'ext') diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index 562b758bda..6ca685317e 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -200,6 +200,8 @@ elsif have_header "windows.h" %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.2.3