summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-10-22 20:18:58 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-10-22 20:18:58 +0200
commitaa0701b100084d61df6fff10be48bb088f551932 (patch)
tree24acb326dccf074331b9556e959df72ae6307bef /runtime
parent87472f58b4cd47762a7b134f0d8521cabc739cae (diff)
parent096db025e2c06045226f9f3c70386e3394d60bb2 (diff)
downloadrsyslog-aa0701b100084d61df6fff10be48bb088f551932.tar.gz
rsyslog-aa0701b100084d61df6fff10be48bb088f551932.tar.xz
rsyslog-aa0701b100084d61df6fff10be48bb088f551932.zip
Merge branch 'v5-stable' into v5-devel
Conflicts: ChangeLog configure.ac doc/manual.html
Diffstat (limited to 'runtime')
-rw-r--r--runtime/msg.c2
-rw-r--r--runtime/stream.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 1b188263..f575b86b 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -2588,7 +2588,7 @@ uchar *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe,
bFound = 1;
} else {
dbgprintf("regex found at offset %d, new offset %d, tries %d\n",
- iOffs, iOffs + pmatch[0].rm_eo, iTry);
+ iOffs, (int) (iOffs + pmatch[0].rm_eo), iTry);
iOffs += pmatch[0].rm_eo;
++iTry;
}
diff --git a/runtime/stream.c b/runtime/stream.c
index 6b3040d8..260b59ef 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