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