aboutsummaryrefslogtreecommitdiffhomepage
path: root/cbits/ghcrts.c
diff options
context:
space:
mode:
Diffstat (limited to 'cbits/ghcrts.c')
-rw-r--r--cbits/ghcrts.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cbits/ghcrts.c b/cbits/ghcrts.c
new file mode 100644
index 0000000..1e0dc1c
--- /dev/null
+++ b/cbits/ghcrts.c
@@ -0,0 +1,14 @@
+#include "execvpe.h"
+
+#ifdef __GLASGOW_HASKELL__
+// for 'void StopTimer(void)' prototype
+# include "Rts.h"
+#endif
+
+/* Copied verbatim from ghc/lib/std/cbits/system.c. */
+void pPrPr_disableITimers (void)
+{
+#ifdef __GLASGOW_HASKELL__
+ stopTimer();
+#endif
+}