summaryrefslogtreecommitdiffstats
path: root/runtime/stream.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-10-19 12:39:48 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-10-19 12:39:48 +0200
commit0a24b3afc093e16038da170458e2ecb68b363bdd (patch)
tree5100ee6753a221a079e332e52613845471bfc92f /runtime/stream.c
parent7cdc7cbaa055c84b463d5fba4457036e249828a1 (diff)
downloadrsyslog-0a24b3afc093e16038da170458e2ecb68b363bdd.tar.gz
rsyslog-0a24b3afc093e16038da170458e2ecb68b363bdd.tar.xz
rsyslog-0a24b3afc093e16038da170458e2ecb68b363bdd.zip
fixing some compile problems on FreeBSD
Diffstat (limited to 'runtime/stream.c')
-rw-r--r--runtime/stream.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/stream.c b/runtime/stream.c
index 696986c7..869324ec 100644
--- a/runtime/stream.c
+++ b/runtime/stream.c
@@ -60,7 +60,14 @@
# include <sys/prctl.h>
#endif
-#define inline
+/* some platforms do not have large file support :( */
+#ifndef O_LARGEFILE
+# define O_LARGEFILE 0
+#endif
+#ifndef HAVE_LSEEK64
+ typedef off_t off64_t;
+# define lseek64(fd, offset, whence) lseek(fd, offset, whence)
+#endif
/* static data */
DEFobjStaticHelpers