diff options
author | Sutou Kouhei <[email protected]> | 2021-04-19 16:45:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-05-18 12:48:40 +0900 |
commit | 79717f81f8ba24960cca6c934d00c72db64139ed (patch) | |
tree | 334f08246963fa943a5e949d1ecab3d064f7dfa0 /ext | |
parent | 71d4a493b890a21fdf3b302849d6d60c11ba1d9e (diff) |
[ruby/fiddle] windows: link to ws2_32 for WSAGetLastError()
https://github.com/ruby/fiddle/commit/e9955d74ae
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4506
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fiddle/extconf.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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) |