summary refs log tree commit diff
path: root/pkgs/os-specific/windows/mingw-w64/osvi.patch
diff options
context:
space:
mode:
authorMatthew Bauer <matthew.bauer@obsidian.systems>2018-08-07 10:20:13 -0400
committerMatthew Bauer <matthew.bauer@obsidian.systems>2018-08-07 14:17:01 -0400
commit744665e3c4b01fb836d800e96ab85c85707a7609 (patch)
treef597195d8a7b1fcfb6de31f300683458369788eb /pkgs/os-specific/windows/mingw-w64/osvi.patch
parent9cee386f38cff036b48cfd8af916411eb84c6b3b (diff)
downloadnixlib-744665e3c4b01fb836d800e96ab85c85707a7609.tar
nixlib-744665e3c4b01fb836d800e96ab85c85707a7609.tar.gz
nixlib-744665e3c4b01fb836d800e96ab85c85707a7609.tar.bz2
nixlib-744665e3c4b01fb836d800e96ab85c85707a7609.tar.lz
nixlib-744665e3c4b01fb836d800e96ab85c85707a7609.tar.xz
nixlib-744665e3c4b01fb836d800e96ab85c85707a7609.tar.zst
nixlib-744665e3c4b01fb836d800e96ab85c85707a7609.zip
mingw: add osvi.patch
This is apparently a typo that has not been fixed.

Also remove unused configureFlags.
Diffstat (limited to 'pkgs/os-specific/windows/mingw-w64/osvi.patch')
-rw-r--r--pkgs/os-specific/windows/mingw-w64/osvi.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/os-specific/windows/mingw-w64/osvi.patch b/pkgs/os-specific/windows/mingw-w64/osvi.patch
new file mode 100644
index 000000000000..8d82f56d86fe
--- /dev/null
+++ b/pkgs/os-specific/windows/mingw-w64/osvi.patch
@@ -0,0 +1,11 @@
+--- 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);
+   }
\ No newline at end of file