From de93587affb17675e6f7cab2b85613d61e11b98b Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 23 Mar 2015 09:13:55 -0500 Subject: 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 --- mk/os-Linux.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3