summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
diff options
context:
space:
mode:
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 ;)