From 64257d689d35d5af9100b70dbdc6a8a619d185d0 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 19 Jan 2020 09:10:58 +0100 Subject: [PATCH] Minor, cleanup/coding-style Signed-off-by: Joachim Nilsson --- src/Makefile.am | 3 ++- src/compat.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 207a137..3b90c6c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -38,7 +38,8 @@ AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter -fno-strict-ali AM_CPPFLAGS = -DSYSCONFDIR=\"@sysconfdir@\" -DRUNSTATEDIR=\"@runstatedir@\" AM_CPPFLAGS += -D_BSD_SOURCE -D_DEFAULT_SOURCE -syslogd_SOURCES = syslogd.c syslogd.h socket.c socket.h syslog.h timer.c timer.h queue.h compat.h +syslogd_SOURCES = syslogd.c syslogd.h socket.c socket.h syslog.h +syslogd_SOURCES += timer.c timer.h queue.h compat.h syslogd_CPPFLAGS = $(AM_CPPFLAGS) -D_XOPEN_SOURCE=600 syslogd_LDADD = $(LIBS) $(LIBOBJS) diff --git a/src/compat.h b/src/compat.h index a5b20ad..01d6e3a 100644 --- a/src/compat.h +++ b/src/compat.h @@ -56,8 +56,8 @@ typedef pthread_mutex_t mutex_t; #define mutex_unlock(m) pthread_mutex_unlock(m) #endif -/* BSD have sa_len, Linux/GNU doesn't */ -#if defined(_AIX) || (defined(BSD) && (BSD >= 199006)) /* sa_len was added with 4.3-Reno */ +/* BSD have sa_len, Linux/GNU doesn't, added with 4.3-Reno */ +#if defined(_AIX) || (defined(BSD) && (BSD >= 199006)) #define HAVE_SA_LEN #endif