summaryrefslogtreecommitdiff
path: root/ext/win32/resolv/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32/resolv/extconf.rb')
-rw-r--r--ext/win32/resolv/extconf.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/win32/resolv/extconf.rb b/ext/win32/resolv/extconf.rb
index 2ae4bb2..01f3df7 100644
--- a/ext/win32/resolv/extconf.rb
+++ b/ext/win32/resolv/extconf.rb
@@ -1 +1,3 @@
-create_makefile('win32/resolv')
+if have_library('iphlpapi', 'GetNetworkParams')
+ create_makefile('win32/resolv')
+end