diff options
author | Cristiano <cristianorolim@hotmail.com> | 2010-02-03 15:42:14 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-03 15:42:14 +0100 |
commit | 66d129c9ca24f6f3001fad9cc854c54a360df49e (patch) | |
tree | 24b027738755f0562ea4b21c56d04a845bb07089 | |
parent | 939852b1cdfaed376342a3a0aa4b0fb7c14f55c5 (diff) | |
download | rsyslog-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-- | ChangeLog | 3 | ||||
-rw-r--r-- | tools/syslogd.c | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -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) |