aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorAlex Samorukov <samm@os2.kiev.ua>2021-01-04 01:11:57 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2021-01-04 13:28:28 +0100
commit92d84c40140c2681421ad005f971b8e5e6a96915 (patch)
tree69e9832d6266e68d7484bb1a5134843047ec7a75 /sysklogd
parentdae90bbcc2876d2cffc2193f823837254ea5f309 (diff)
downloadbusybox-92d84c40140c2681421ad005f971b8e5e6a96915.tar.gz
Fix klogd applet compilation on the FreeBSD
FreeBSD also using /dev/klog, see syslogd(8) Signed-off-by: Alex Samorukov <samm@os2.kiev.ua> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/klogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index c0ec1c0bf..82596bc0b 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -100,7 +100,7 @@ static void klogd_close(void)
#else
# ifndef _PATH_KLOG
-# ifdef __GNU__
+# if defined(__GNU__) || defined (__FreeBSD__)
# define _PATH_KLOG "/dev/klog"
# else
# error "your system's _PATH_KLOG is unknown"