summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-18 16:07:23 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-18 16:07:23 +0000
commit5963c721d6b81882b5941b1bfd741177418b2d30 (patch)
tree27472c9727f60a3a71eb25d67e0f42a0bb45ed73
parentf3eefa2854823a0e4e526b68ffefac2066f32491 (diff)
downloadrsyslog-5963c721d6b81882b5941b1bfd741177418b2d30.tar.gz
rsyslog-5963c721d6b81882b5941b1bfd741177418b2d30.tar.xz
rsyslog-5963c721d6b81882b5941b1bfd741177418b2d30.zip
code cleanups thanks to Michael Biebl
-rw-r--r--configure.ac2
-rw-r--r--rsyslog.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index d057318e..50685926 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,8 @@ AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([syslogd.c])
AC_CONFIG_HEADERS([config.h])
+AC_GNU_SOURCE
+
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O
diff --git a/rsyslog.h b/rsyslog.h
index b6e17d55..c08c5db9 100644
--- a/rsyslog.h
+++ b/rsyslog.h
@@ -24,10 +24,6 @@
# define _FILE_OFFSET_BITS 64
#endif
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE 1
-#endif
-
/* The error codes below are orginally "borrowed" from
* liblogging. As such, we reserve values up to -2999
* just in case we need to borrow something more ;)