From ad379ff7e22681c09ec7b50bc00d2d6cd3ae3263 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 9 Jun 2009 12:17:05 +0000 Subject: [PATCH] Define _BSD_SOURCE in Stg.h This means that, on Linux, we get functions like gamma defined when we #include math.h --- includes/Stg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Stg.h b/includes/Stg.h index 341cda3..06a8662 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 -- 1.7.10.4