Unbreak compilation on non-Linux systems (FreeBSD)
authorMatthias Andree <matthias.andree@gmx.de>
Sat, 24 May 2025 19:33:16 +0000 (21:33 +0200)
committerSimon Kelley <simon@thekelleys.org.uk>
Sun, 25 May 2025 20:15:41 +0000 (21:15 +0100)
and put the void cast of netlink_warn under the same preprocessor
condition as its definition, #ifdef HAVE_LINUX_NETWORK.

src/dnsmasq.c

index 4c70236..62a9e59 100644 (file)
@@ -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, "");