a7021c2
From 7d738547049e686be4d90a19dcb9520418d5f72d Mon Sep 17 00:00:00 2001
a7021c2
From: Jens Petersen <petersen@redhat.com>
a7021c2
Date: Mon, 9 Jun 2014 15:48:41 +0900
a7021c2
Subject: [PATCH] define _DEFAULT_SOURCE in Stg.h to avoid warnings from glibc
a7021c2
 2.20 (#9185)
a7021c2
a7021c2
---
a7021c2
 includes/Stg.h | 2 ++
a7021c2
 1 file changed, 2 insertions(+)
a7021c2
a7021c2
diff --git a/includes/Stg.h b/includes/Stg.h
a7021c2
index 1707c9b..fbcf643 100644
a7021c2
--- a/includes/Stg.h
a7021c2
+++ b/includes/Stg.h
a7021c2
@@ -47,6 +47,8 @@
06bebb5
 // We need _BSD_SOURCE so that math.h defines things like gamma
06bebb5
 // on Linux
a7021c2
 # define _BSD_SOURCE
a7021c2
+// glibc 2.20 deprecates _BSD_SOURCE in favour of _DEFAULT_SOURCE
06bebb5
+# define _DEFAULT_SOURCE
06bebb5
 #endif
06bebb5
 
06bebb5
 #if IN_STG_CODE == 0 || defined(llvm_CC_FLAVOR)
a7021c2
-- 
a7021c2
1.9.3
a7021c2