summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Capriotti <p.capriotti@gmail.com>2012-08-20 16:25:49 +0100
committerPaolo Capriotti <p.capriotti@gmail.com>2012-08-20 22:19:45 +0100
commita874dd85f111bf93292ee074503ad070db38a1f9 (patch)
tree180a02668532d1ecfd75310aa08fb66c16d2b9b5
parent4e0a957758af94bc39ff51814bad54faf96a94b9 (diff)
downloadhaskell-a874dd85f111bf93292ee074503ad070db38a1f9.tar.gz
Export startProfTimer and stopProfTimer symbols.
This fixes unresolved symbols error when dynamically linking base.
-rw-r--r--rts/Linker.c5
-rw-r--r--rts/Proftimer.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index c6e66f55b5..75b9c7c09d 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -28,6 +28,7 @@
#include "Trace.h"
#include "StgPrimFloat.h" // for __int_encodeFloat etc.
#include "Stable.h"
+#include "Proftimer.h"
#if !defined(mingw32_HOST_OS)
#include "posix/Signals.h"
@@ -1298,8 +1299,8 @@ typedef struct _RtsSymbolVal {
SymI_HasProto(getMonotonicNSec) \
SymI_HasProto(lockFile) \
SymI_HasProto(unlockFile) \
- SymI_NeedsProto(startProfTimer) \
- SymI_NeedsProto(stopProfTimer) \
+ SymI_HasProto(startProfTimer) \
+ SymI_HasProto(stopProfTimer) \
RTS_USER_SIGNALS_SYMBOLS \
RTS_INTCHAR_SYMBOLS
diff --git a/rts/Proftimer.h b/rts/Proftimer.h
index 2b7646f2b7..a8d16b45f4 100644
--- a/rts/Proftimer.h
+++ b/rts/Proftimer.h
@@ -9,14 +9,14 @@
#ifndef PROFTIMER_H
#define PROFTIMER_H
+void stopProfTimer ( void );
+void startProfTimer ( void );
+
#include "BeginPrivate.h"
void initProfTimer ( void );
void handleProfTick ( void );
-void stopProfTimer ( void );
-void startProfTimer ( void );
-
void stopHeapProfTimer ( void );
void startHeapProfTimer ( void );