diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-03-23 09:13:55 -0500 |
---|---|---|
committer | Doug Freed <dwfreed@mtu.edu> | 2015-03-24 17:46:30 +0000 |
commit | de93587affb17675e6f7cab2b85613d61e11b98b (patch) | |
tree | 5f9b8b160df503b75c4f987252feb5274087f09b /mk | |
parent | be497229b64613ebfbc4073985107a275d49f78e (diff) |
Silence warning about _DEFAULT_SOURCE for Linux/glibc
In >=glibc-2.20, the _BSD_SOURCE macro is deprecated in favor of
_DEFAULT_SOURCE. This adds -D_DEFAULT_SOURCE to CPPFLAGS on Linux.
Fixes #44
Diffstat (limited to 'mk')
-rw-r--r-- | mk/os-Linux.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/os-Linux.mk b/mk/os-Linux.mk index bb6fa372..60235b8d 100644 --- a/mk/os-Linux.mk +++ b/mk/os-Linux.mk @@ -4,7 +4,7 @@ SFX= .Linux.in PKG_PREFIX?= /usr -CPPFLAGS+= -D_BSD_SOURCE -D_XOPEN_SOURCE=700 +CPPFLAGS+= -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=700 LIBDL= -Wl,-Bdynamic -ldl ifeq (${MKSELINUX},yes) |