[PATCH] mount: Surround syslog.h with the config check

2020-12-21 Thread Lauri Kasanen
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 
---
 util-linux/mount.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util-linux/mount.c b/util-linux/mount.c
index 0814a52..831dab9 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
--
2.6.2

___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


Re: [PATCH] mount: Surround syslog.h with the config check

2020-12-26 Thread Denys Vlasenko
Applied, thank you

On Mon, Dec 21, 2020 at 5:54 PM Lauri Kasanen  wrote:
>
> 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 
> ---
>  util-linux/mount.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/util-linux/mount.c b/util-linux/mount.c
> index 0814a52..831dab9 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
> --
> 2.6.2
>
> ___
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox