Skip to content

Instantly share code, notes, and snippets.

@mattn
Created October 5, 2012 09:35
Show Gist options
  • Select an option

  • Save mattn/3838951 to your computer and use it in GitHub Desktop.

Select an option

Save mattn/3838951 to your computer and use it in GitHub Desktop.
diff --git a/Makefile.PL b/Makefile.PL
index 12fa302..3a2496c 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -60,7 +60,8 @@ elsif ($^O eq 'sunos' || $^O eq 'solaris') {
cc_libs 'm', 'socket', 'nsl', 'kstat', 'pthreads';
}
elsif ($^O eq 'MSWin32') {
- cc_libs 'm', 'ws2_32';
+ cc_append_to_ccflags '-D_WIN32_WINNT=0x600';
+ cc_libs 'm', 'ws2_32', 'psapi', 'iphlpapi', 'kernel32';
}
else {
die "$^O is unsupported at this point\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment