[Dnsmasq-discuss] [PATCH] Unbreak compilation on non-Linux systems (FreeBSD)

Geert Stappers stappers at stappers.nl
Mon Jun 16 16:40:05 UTC 2025


On Sun, May 25, 2025 at 02:26:19PM +0200, Matthias Andree via Dnsmasq-discuss wrote:
> and put the void cast of netlink_warn under the same preprocessor
> condition as its definition, #ifdef HAVE_LINUX_NETWORK.
> ---
>  src/dnsmasq.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/dnsmasq.c b/src/dnsmasq.c
> index 4c70236..62a9e59 100644
> --- a/src/dnsmasq.c
> +++ b/src/dnsmasq.c
> @@ -81,7 +81,9 @@ int main (int argc, char **argv)
>    int tftp_prefix_missing = 0;
>  #endif
>  
> +#ifdef HAVE_LINUX_NETWORK
>    (void)netlink_warn;
> +#endif
>    
>  #if defined(HAVE_IDN) || defined(HAVE_LIBIDN2) || defined(LOCALEDIR)
>    setlocale(LC_ALL, "");

It became commit c9a4240ec43509969d974465e74230e5fc69e1b0
https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=c9a4240ec43509969d974465e74230e5fc69e1b0


Regarding
Geert Stappers
-- 
Silence is hard to parse



More information about the Dnsmasq-discuss mailing list