ghc/ghc-glibc-2.20_BSD_SOURCE.patch

12 lines
336 B
Diff

--- ghc-7.6.3/includes/Stg.h~ 2013-04-19 06:22:46.000000000 +0900
+++ ghc-7.6.3/includes/Stg.h 2014-06-06 13:01:40.881289598 +0900
@@ -46,7 +46,7 @@
// We need _BSD_SOURCE so that math.h defines things like gamma
// on Linux
-# define _BSD_SOURCE
+# define _DEFAULT_SOURCE
#endif
#if IN_STG_CODE == 0 || defined(llvm_CC_FLAVOR)