diff options
author | Rainer Gerhards <rgerhards@hq.adiscon.com> | 2008-11-24 17:48:12 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@hq.adiscon.com> | 2008-11-24 17:48:12 +0100 |
commit | 2275a915e02ca4fd1cd1b3c450b0089ae98bc907 (patch) | |
tree | 373c2f25ad21c75619714e93d6b84d8f74b44a30 /plugins/imklog/imklog.c | |
parent | c2fef48bd32ac6fcd6c8664976a39424187f4872 (diff) | |
download | rsyslog-2275a915e02ca4fd1cd1b3c450b0089ae98bc907.tar.gz rsyslog-2275a915e02ca4fd1cd1b3c450b0089ae98bc907.tar.bz2 rsyslog-2275a915e02ca4fd1cd1b3c450b0089ae98bc907.zip |
bugfix: imklog did not compile on freeBSD
Diffstat (limited to 'plugins/imklog/imklog.c')
-rw-r--r-- | plugins/imklog/imklog.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c index 84c32d11..20bc34ab 100644 --- a/plugins/imklog/imklog.c +++ b/plugins/imklog/imklog.c @@ -199,6 +199,17 @@ finalize_it: } +/* helper for some klog drivers which need to know the MaxLine global setting. They can + * not obtain it themselfs, because they are no modules and can not query the object hander. + * It would probably be a good idea to extend the interface to support it, but so far + * we create a (sufficiently valid) work-around. -- rgerhards, 2008-11-24 + */ +int klog_getMaxLine(void) +{ + return glbl.GetMaxLine(); +} + + BEGINrunInput CODESTARTrunInput /* this is an endless loop - it is terminated when the thread is |