mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
14 lines
491 B
Diff
14 lines
491 B
Diff
Fix `error: osvi undeclared (first use in this function)' issue.
|
|
|
|
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863064
|
|
--- a/mingw-w64-headers/include/multimon.h
|
|
+++ b/mingw-w64-headers/include/multimon.h
|
|
@@ -127,7 +127,7 @@
|
|
WINBOOL IsPlatformNT() {
|
|
OSVERSIONINFOA oi = { 0 };
|
|
|
|
- oi.dwOSVersionInfoSize = sizeof (osvi);
|
|
+ oi.dwOSVersionInfoSize = sizeof (oi);
|
|
GetVersionExA ((OSVERSIONINFOA *) &oi);
|
|
return (oi.dwPlatformId == VER_PLATFORM_WIN32_NT);
|
|
}
|