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>
This commit is contained in:
Lauri Kasanen 2020-12-21 18:55:59 +02:00 committed by Denys Vlasenko
parent 51a471d05d
commit 6cfec7dd02

View File

@ -182,7 +182,9 @@
//usage: "Returns 0 for success, number of failed mounts for -a, or errno for one mount." //usage: "Returns 0 for success, number of failed mounts for -a, or errno for one mount."
#include <mntent.h> #include <mntent.h>
#if ENABLE_FEATURE_SYSLOG
#include <syslog.h> #include <syslog.h>
#endif
#include <sys/mount.h> #include <sys/mount.h>
// Grab more as needed from util-linux's mount/mount_constants.h // Grab more as needed from util-linux's mount/mount_constants.h
#ifndef MS_DIRSYNC #ifndef MS_DIRSYNC