[git commit] mount: Surround syslog.h with the config check
Denys Vlasenko
vda.linux at googlemail.com
Fri Dec 25 17:15:37 UTC 2020
commit: https://git.busybox.net/busybox/commit/?id=6cfec7dd0269619add74ff654f724d3c5f89176b
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
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 <cand at gmx.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
util-linux/mount.c | 2 ++
1 file changed, 2 insertions(+)
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 <mntent.h>
+#if ENABLE_FEATURE_SYSLOG
#include <syslog.h>
+#endif
#include <sys/mount.h>
// Grab more as needed from util-linux's mount/mount_constants.h
#ifndef MS_DIRSYNC
More information about the busybox-cvs
mailing list