summaryrefslogtreecommitdiffstats
path: root/outchannel.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2005-06-27 16:21:48 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2005-06-27 16:21:48 +0000
commit3539db6ef7e019f6098dcc066faf0d3f0aa949bb (patch)
tree403e522f7ababfa808d97c890fab88068d32d4b4 /outchannel.c
parentb14349ab99423a429bf1964fb0580acf95d6444f (diff)
downloadrsyslog-3539db6ef7e019f6098dcc066faf0d3f0aa949bb.tar.gz
rsyslog-3539db6ef7e019f6098dcc066faf0d3f0aa949bb.tar.xz
rsyslog-3539db6ef7e019f6098dcc066faf0d3f0aa949bb.zip
quick (&dirty) fix four outchannel.h under bsd - requires further fixing on
all platforms
Diffstat (limited to 'outchannel.c')
-rw-r--r--outchannel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/outchannel.c b/outchannel.c
index 7bae91ad..6efd0256 100644
--- a/outchannel.c
+++ b/outchannel.c
@@ -1,3 +1,10 @@
+#ifndef NOLARGEFILE
+# define _GNU_SOURCE
+# define _LARGEFILE_SOURCE
+# define _LARGEFILE64_SOURCE
+# define _FILE_OFFSET_BITS 64
+#endif
+
/* This is the output channel processing code of rsyslog.
* Output channels - in the long term - will define how
* messages will be sent to whatever file or other medium.
@@ -12,6 +19,7 @@
#endif
#include <stdio.h>
+#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>