diff options
author | Sutou Kouhei <kou@clear-code.com> | 2021-04-19 16:45:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-18 12:48:40 +0900 |
commit | 79717f81f8ba24960cca6c934d00c72db64139ed (patch) | |
tree | 334f08246963fa943a5e949d1ecab3d064f7dfa0 /ext/fiddle/extconf.rb | |
parent | 71d4a493b890a21fdf3b302849d6d60c11ba1d9e (diff) | |
download | ruby-79717f81f8ba24960cca6c934d00c72db64139ed.tar.gz |
[ruby/fiddle] windows: link to ws2_32 for WSAGetLastError()
https://github.com/ruby/fiddle/commit/e9955d74ae
Diffstat (limited to 'ext/fiddle/extconf.rb')
-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) |