summaryrefslogtreecommitdiff
path: root/rts/RtsProbes.d
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-10-16 15:27:48 -0400
committerBen Gamari <ben@smart-cactus.org>2017-10-16 17:24:49 -0400
commit5dab54428229a8d4f1658c4ad94f616b211851fe (patch)
tree41706e019d2afef2bde44261c32622a1ab8c39a5 /rts/RtsProbes.d
parentfd8b044e9664181d4815e48e8f83be78bc9fe8d2 (diff)
downloadhaskell-5dab54428229a8d4f1658c4ad94f616b211851fe.tar.gz
FreeBSD dtrace probe support
Reviewers: austin, hvr, erikd, simonmar, bgamari Reviewed By: bgamari Subscribers: snowleopard, raichoo, rwbarton, thomie, erikd Differential Revision: https://phabricator.haskell.org/D3994
Diffstat (limited to 'rts/RtsProbes.d')
-rw-r--r--rts/RtsProbes.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/rts/RtsProbes.d b/rts/RtsProbes.d
index 277a494632..efbe653e0b 100644
--- a/rts/RtsProbes.d
+++ b/rts/RtsProbes.d
@@ -12,6 +12,13 @@
# endif
#endif
+#if defined(__FreeBSD__)
+/* we need this otherwise dtrace complains about redeclared int types
+ * TODO: find a better way to do this
+ */
+#define _INTTYPES_H_
+#endif
+
#include "HsFFI.h"
#include "rts/EventLogFormat.h"