]> git.ipfire.org Git - thirdparty/iproute2.git/commit
Only compile mnl_utils when HAVE_MNL is defined
authorDavid Ahern <dsahern@gmail.com>
Thu, 3 Dec 2020 04:07:24 +0000 (04:07 +0000)
committerDavid Ahern <dsahern@gmail.com>
Fri, 4 Dec 2020 16:19:05 +0000 (16:19 +0000)
commitb3c4a5506463b50f2926fd6bbf98d596afd7372b
tree19c0556148ae3337d743413b09fe2c7e28fe9731
parentea130da81ee1c1b6b1e3db88927b2d50b5d0d2fc
Only compile mnl_utils when HAVE_MNL is defined

New lib/mnl_utils.c fails to compile if libmnl is not installed:

  mnl_utils.c:9:10: fatal error: libmnl/libmnl.h: No such file or directory
      9 | #include <libmnl/libmnl.h>

Make it dependent on HAVE_MNL.

Fixes: 72858c7b77d0 ("lib: Extract from devlink/mnlg a helper, mnlu_socket_open()")
Signed-off-by: David Ahern <dsahern@gmail.com>
lib/Makefile