projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72fbfd1
)
later mingw runtimes have gettimeofday, it seems
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 16 May 2007 11:23:40 +0000
(11:23 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 16 May 2007 11:23:40 +0000
(11:23 +0000)
rts/Linker.c
patch
|
blob
|
history
diff --git
a/rts/Linker.c
b/rts/Linker.c
index
e489bed
..
65305f3
100644
(file)
--- a/
rts/Linker.c
+++ b/
rts/Linker.c
@@
-256,6
+256,12
@@
typedef struct _RtsSymbolVal {
#define RTS_MINGW_EXTRA_SYMS
#endif
+#if HAVE_GETTIMEOFDAY
+#define RTS_MINGW_GETTIMEOFDAY_SYM Sym(gettimeofday)
+#else
+#define RTS_MINGW_GETTIMEOFDAY_SYM /**/
+#endif
+
/* These are statically linked from the mingw libraries into the ghc
executable, so we have to employ this hack. */
#define RTS_MINGW_ONLY_SYMBOLS \
@@
-339,6
+345,7
@@
typedef struct _RtsSymbolVal {
Sym(readdir) \
Sym(rewinddir) \
RTS_MINGW_EXTRA_SYMS \
+ RTS_MINGW_GETTIMEOFDAY_SYM \
Sym(closedir)
#endif