uv_mingw32.patch 794 B

1234567891011121314151617181920212223
  1. --- ./src/win/util.c 2013-05-14 19:50:19.000000000 -0400
  2. +++ ./src/win/util.c 2013-05-17 11:36:11.461019000 -0400
  3. @@ -31,6 +31,20 @@
  4. #include "uv.h"
  5. #include "internal.h"
  6. +#ifdef __MINGW32__
  7. + // MINGW64 previous to version 0.2.7 and 0.1.7 did not properly pull in
  8. + // dependencies needed for iphlpapi.h leading to compiler errors such as
  9. + // ras.h:988:3: error: unknown type name 'IsolationState'
  10. + // see: http://sourceforge.net/mailarchive/message.php?msg_id=29793138
  11. + #include <_mingw.h>
  12. + #if !defined(__MINGW64_VERSION_MAJOR)
  13. + #elif __MINGW64_VERSION_MAJOR > 2
  14. + #elif __MINGW64_VERSION_MINOR > 6
  15. + #else
  16. + #include <naptypes.h>
  17. + #include <ntddndis.h>
  18. + #endif
  19. +#endif
  20. #include <iphlpapi.h>
  21. #include <psapi.h>
  22. #include <tlhelp32.h>