Re: [PATCH iproute2-next] Only compile mnl_utils when HAVE_LIBMNL is defined

2020-12-03 Thread David Ahern
On 12/3/20 2:45 PM, Petr Machata wrote: > > David Ahern writes: > >> diff --git a/lib/Makefile b/lib/Makefile >> index e37585c6..603ea83e 100644 >> --- a/lib/Makefile >> +++ b/lib/Makefile >> @@ -13,7 +13,10 @@ UTILOBJ += bpf_libbpf.o >> endif >> endif >> >> -NLOBJ=libgenl.o libnetlink.o mnl

Re: [PATCH iproute2-next] Only compile mnl_utils when HAVE_LIBMNL is defined

2020-12-03 Thread Petr Machata
David Ahern writes: > diff --git a/lib/Makefile b/lib/Makefile > index e37585c6..603ea83e 100644 > --- a/lib/Makefile > +++ b/lib/Makefile > @@ -13,7 +13,10 @@ UTILOBJ += bpf_libbpf.o > endif > endif > > -NLOBJ=libgenl.o libnetlink.o mnl_utils.o > +NLOBJ=libgenl.o libnetlink.o > +ifeq ($(HA

[PATCH iproute2-next] Only compile mnl_utils when HAVE_LIBMNL is defined

2020-12-02 Thread David Ahern
From: David Ahern 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 Make it dependent on HAVE_LIBMNL. Fixes: 72858c7b77d0 ("lib: Extract from devlink/mnlg a helper, mnlu_socket_open(