diff options
author | Lauri Kasanen <cand@gmx.com> | 2020-12-21 18:55:59 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-12-25 18:15:37 +0100 |
commit | 6cfec7dd0269619add74ff654f724d3c5f89176b (patch) | |
tree | 8efd96b27ec2dd39568ae653add2cf00174256c8 | |
parent | 51a471d05d637e928ed26b0240645ff3e51ef396 (diff) | |
download | busybox-w32-6cfec7dd0269619add74ff654f724d3c5f89176b.tar.gz busybox-w32-6cfec7dd0269619add74ff654f724d3c5f89176b.tar.bz2 busybox-w32-6cfec7dd0269619add74ff654f724d3c5f89176b.zip |
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 <cand@gmx.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/mount.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
182 | //usage: "Returns 0 for success, number of failed mounts for -a, or errno for one mount." | 182 | //usage: "Returns 0 for success, number of failed mounts for -a, or errno for one mount." |
183 | 183 | ||
184 | #include <mntent.h> | 184 | #include <mntent.h> |
185 | #if ENABLE_FEATURE_SYSLOG | ||
185 | #include <syslog.h> | 186 | #include <syslog.h> |
187 | #endif | ||
186 | #include <sys/mount.h> | 188 | #include <sys/mount.h> |
187 | // Grab more as needed from util-linux's mount/mount_constants.h | 189 | // Grab more as needed from util-linux's mount/mount_constants.h |
188 | #ifndef MS_DIRSYNC | 190 | #ifndef MS_DIRSYNC |