From 33411f8a0cb6b83a9e3059b592349c55a872e4b1 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 23 Oct 2019 14:56:44 +0200 Subject: [PATCH] Drop define of _SVID_SOURCE, not needed anymore For compatibility with GLIBC <2.19 we only need to define _BSD_SOURCE, and for compatibility with GLIBC >=2.19 we must defined _DEFAULT_SOURCE. Signed-off-by: Joachim Nilsson --- src/Makefile.am | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 70f3d58..4e2432c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,17 +25,16 @@ AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter AM_CFLAGS += -fomit-frame-pointer -fno-strength-reduce syslogd_SOURCES = syslogd.c pidfile.c pidfile.h -syslogd_CPPFLAGS = -DINET6 -D_BSD_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE +syslogd_CPPFLAGS = -DINET6 -D_BSD_SOURCE -D_DEFAULT_SOURCE klogd_SOURCES = klogd.c klogd.h syslog.c pidfile.c pidfile.h \ ksym.c ksyms.h ksym_mod.c module.h -klogd_CPPFLAGS = -DALLOW_KERNEL_LOGGING \ - -D_BSD_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE +klogd_CPPFLAGS = -DALLOW_KERNEL_LOGGING -D_BSD_SOURCE -D_DEFAULT_SOURCE logger_SOURCES = logger.c syslog.c logger_CPPFLAGS = -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE tsyslogd_SOURCES = syslogd.c pidfile.c pidfile.h -tsyslogd_CPPFLAGS = -DINET6 -D_BSD_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -DTESTING +tsyslogd_CPPFLAGS = -DINET6 -D_BSD_SOURCE -D_DEFAULT_SOURCE -DTESTING syslog_tst_SOURCES = syslog_tst.c