summaryrefslogtreecommitdiff
path: root/includes/Stg.h
diff options
context:
space:
mode:
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 4c26e3ef80..f09fc00966 100644
--- a/includes/Stg.h
+++ b/includes/Stg.h
@@ -47,6 +47,10 @@
// We need _BSD_SOURCE so that math.h defines things like gamma
// on Linux
# define _BSD_SOURCE
+
+// '_BSD_SOURCE' is deprecated since glibc-2.20
+// in favour of '_DEFAULT_SOURCE'
+# define _DEFAULT_SOURCE
#endif
#if IN_STG_CODE == 0 || defined(llvm_CC_FLAVOR)