summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristiano <cristianorolim@hotmail.com>2010-02-03 15:42:14 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-03 15:42:14 +0100
commit66d129c9ca24f6f3001fad9cc854c54a360df49e (patch)
tree24b027738755f0562ea4b21c56d04a845bb07089
parent939852b1cdfaed376342a3a0aa4b0fb7c14f55c5 (diff)
downloadrsyslog-66d129c9ca24f6f3001fad9cc854c54a360df49e.tar.gz
rsyslog-66d129c9ca24f6f3001fad9cc854c54a360df49e.tar.xz
rsyslog-66d129c9ca24f6f3001fad9cc854c54a360df49e.zip
(slightly) enhanced support for FreeBSD by setting _PATH_MODDIR to the correct value on FreeBSD.
Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
-rw-r--r--ChangeLog3
-rw-r--r--tools/syslogd.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 35f92a29..b8277234 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
---------------------------------------------------------------------------
Version 4.5.8 [v4-beta] (rgerhards), 2010-01-??
+- (slightly) enhanced support for FreeBSD by setting _PATH_MODDIR to
+ the correct value on FreeBSD.
+ Thanks to Cristiano for the patch.
- bugfix: -d did not enable display of debug messages
regression from introduction of "debug on demand" mode
Thanks to Michael Biebl for reporting this bug
diff --git a/tools/syslogd.c b/tools/syslogd.c
index ab8f015d..db1e9428 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -177,7 +177,11 @@ static rsRetVal GlobalClassExit(void);
#endif
#ifndef _PATH_MODDIR
-#define _PATH_MODDIR "/lib/rsyslog/"
+# if defined(__FreeBSD__)
+# define _PATH_MODDIR "/usr/local/lib/rsyslog/"
+# else
+# define _PATH_MODDIR "/lib/rsyslog/"
+# endif
#endif
#if defined(SYSLOGD_PIDNAME)