summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-23 09:18:52 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-23 09:18:52 +0000
commit81cb74af2e580d29cff01543119f646c3f4ff987 (patch)
tree965acdbc566ff0295d62dc19752426c387508a2f /rsyslog.h
parent8425445c2dd68d91bb62487032151f06d35c583a (diff)
downloadrsyslog-81cb74af2e580d29cff01543119f646c3f4ff987.tar.gz
rsyslog-81cb74af2e580d29cff01543119f646c3f4ff987.tar.xz
rsyslog-81cb74af2e580d29cff01543119f646c3f4ff987.zip
fixed a very nasty bug in structure creation of struct filed (caused
omusrmsg to be defunct) - many thanks to maharaja for providing the right idea at the right time ;)
Diffstat (limited to 'rsyslog.h')
-rw-r--r--rsyslog.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/rsyslog.h b/rsyslog.h
index 1f633059..9927264d 100644
--- a/rsyslog.h
+++ b/rsyslog.h
@@ -19,12 +19,15 @@
# undef _LARGEFILE_SOURCE
# undef _LARGEFILE64_SOURCE
# undef _FILE_OFFSET_BITS
-# define _GNU_SOURCE
# define _LARGEFILE_SOURCE
# define _LARGEFILE64_SOURCE
# 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 ;)