Skip to content

Commit 612cfc0

Browse files
committed
Fix unix-time in TH code when cross compiling for windows
1 parent d187409 commit 612cfc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

overlays/patches/ghc/win-add-tzset-to-rtssyms.patch

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ diff --git a/rts/RtsSymbols.c b/rts/RtsSymbols.c
22
index 10efb2a..d8ea070 100644
33
--- a/rts/RtsSymbols.c
44
+++ b/rts/RtsSymbols.c
5-
@@ -163,7 +163,11 @@ extern char **environ;
5+
@@ -163,7 +163,12 @@ extern char **environ;
66
SymI_HasProto(__mingw_vfprintf) \
77
/* ^^ Need to figure out why this is needed. */ \
88
SymI_HasProto(closure_sizeW_) \
@@ -11,7 +11,8 @@ index 10efb2a..d8ea070 100644
1111
+ SymI_NeedsProto(_tzset) \
1212
+ /* ^^ This one needed for time, tzset deprecated */\
1313
+ SymI_NeedsProto(tzset) \
14-
+ /* ^^ This one needed for unix-time */
14+
+ SymI_HasProto(strtoll) \
15+
+ /* ^^ These two are needed for unix-time */
1516
#else
1617
#define RTS_MINGW_ONLY_SYMBOLS /**/
1718
#endif

0 commit comments

Comments
 (0)