Minor, cleanup/coding-style

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2020-01-19 09:10:58 +01:00
parent 5fce3001ed
commit 64257d689d
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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