Skip to content
Permalink
Browse files

:-||

  • Loading branch information...
angerman committed Mar 14, 2019
1 parent cfbf80f commit 1543a5c0b6b1fbfbdc235bd4c31f18fe6ea51a91
Showing with 14 additions and 0 deletions.
  1. +1 −0 nix/default.nix
  2. +13 −0 nix/patches/unix-time/lowercase-import-windows.patch
@@ -57,6 +57,7 @@ let
({ config, ...}: {
packages.hsc2hs.components.exes.hsc2hs.doExactConfig = true;
packages.bytestring-builder.doHaddock = false;
packages.unix-time.patches = [ ./patches/unix-time/lowercase-import-windows.patch ];
packages.unix-time.components.library.libs = if pkgs.stdenv.hostPlatform.isWindows then [ pkgs.windows.mingw_w64_pthreads ] else [];
})
];
@@ -0,0 +1,13 @@
diff --git a/cbits/win_patch.h b/cbits/win_patch.h
index 3ee2479..d9fb404 100644
--- a/cbits/win_patch.h
+++ b/cbits/win_patch.h
@@ -14,7 +14,7 @@
#include <pthread.h>

#if defined(_WIN32)
-#include <Windows.h>
+#include <windows.h>
#endif

#if !defined(TM_YEAR_BASE)

0 comments on commit 1543a5c

Please sign in to comment.
You can’t perform that action at this time.