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
This commit is contained in:
William Hubbs 2015-03-23 09:13:55 -05:00 committed by Doug Freed
parent be497229b6
commit de93587aff

View File

@ -4,7 +4,7 @@
SFX= .Linux.in SFX= .Linux.in
PKG_PREFIX?= /usr 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 LIBDL= -Wl,-Bdynamic -ldl
ifeq (${MKSELINUX},yes) ifeq (${MKSELINUX},yes)