summaryrefslogtreecommitdiff
path: root/rts/StgMiscClosures.cmm
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2007-08-10 15:10:45 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2007-08-10 15:10:45 +0000
commit4d93c987a690eda8fbd9d2e4c7b103005dd8836a (patch)
treeea4d487e85a7c5d69d58bb7a9d4cb6ac6519f6f3 /rts/StgMiscClosures.cmm
parent82f8341d3d87d9127c968baa9c3376e3f26caa81 (diff)
downloadhaskell-4d93c987a690eda8fbd9d2e4c7b103005dd8836a.tar.gz
Properly guard imports because they have to be precise on Windows and Darwin sets __PIC__ automatically
Diffstat (limited to 'rts/StgMiscClosures.cmm')
-rw-r--r--rts/StgMiscClosures.cmm2
1 files changed, 2 insertions, 0 deletions
diff --git a/rts/StgMiscClosures.cmm b/rts/StgMiscClosures.cmm
index 4eb20ddfd8..c6cc541cb9 100644
--- a/rts/StgMiscClosures.cmm
+++ b/rts/StgMiscClosures.cmm
@@ -12,9 +12,11 @@
#include "Cmm.h"
+#ifdef __PIC__
import pthread_mutex_lock;
import base_GHCziBase_Czh_static_info;
import base_GHCziBase_Izh_static_info;
+#endif
/* ----------------------------------------------------------------------------
Support for the bytecode interpreter.