From 6cfec7dd0269619add74ff654f724d3c5f89176b Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Mon, 21 Dec 2020 18:55:59 +0200 Subject: mount: Surround syslog.h with the config check This lets bb mount build for limited targets without syslog.h, as long as the parts using it like NFS are disabled. Signed-off-by: Lauri Kasanen Signed-off-by: Denys Vlasenko --- util-linux/mount.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util-linux') diff --git a/util-linux/mount.c b/util-linux/mount.c index 0814a5256..831dab9e2 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -182,7 +182,9 @@ //usage: "Returns 0 for success, number of failed mounts for -a, or errno for one mount." #include +#if ENABLE_FEATURE_SYSLOG #include +#endif #include // Grab more as needed from util-linux's mount/mount_constants.h #ifndef MS_DIRSYNC -- cgit v1.2.3