summaryrefslogtreecommitdiff
path: root/includes/Stg.h
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-06-09 12:17:05 +0000
committerIan Lynagh <igloo@earth.li>2009-06-09 12:17:05 +0000
commitad379ff7e22681c09ec7b50bc00d2d6cd3ae3263 (patch)
tree00d8074a4af1e2250f0707db9191b0f374f6d31b /includes/Stg.h
parent1a660e030bd3aaaa34adfea77d72856cdb48479e (diff)
downloadhaskell-ad379ff7e22681c09ec7b50bc00d2d6cd3ae3263.tar.gz
Define _BSD_SOURCE in Stg.h
This means that, on Linux, we get functions like gamma defined when we #include math.h
Diffstat (limited to 'includes/Stg.h')
-rw-r--r--includes/Stg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/Stg.h b/includes/Stg.h
index 341cda3668..06a866256e 100644
--- a/includes/Stg.h
+++ b/includes/Stg.h
@@ -35,6 +35,10 @@
// Turn on C99 for .hc code. This gives us the INFINITY and NAN
// constants from math.h, which we occasionally need to use in .hc (#1861)
# define _ISOC99_SOURCE
+
+// We need _BSD_SOURCE so that math.h defines things like gamma
+// on Linux
+# define _BSD_SOURCE
#endif
#if IN_STG_CODE == 0