From 92d84c40140c2681421ad005f971b8e5e6a96915 Mon Sep 17 00:00:00 2001 From: Alex Samorukov Date: Mon, 4 Jan 2021 01:11:57 +0100 Subject: Fix klogd applet compilation on the FreeBSD FreeBSD also using /dev/klog, see syslogd(8) Signed-off-by: Alex Samorukov Signed-off-by: Denys Vlasenko --- sysklogd/klogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysklogd') 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" -- cgit v1.2.3