Fix warning in netstat.
authorPhil Blundell <philb@gnu.org>
Sat, 28 Aug 1999 11:26:08 +0000 (11:26 +0000)
committerPhil Blundell <philb@gnu.org>
Sat, 28 Aug 1999 11:26:08 +0000 (11:26 +0000)
Only build util-ank if iptunnel and ipmaddr were requested

lib/Makefile
netstat.c

index 39c6724..d8070bf 100644 (file)
@@ -21,7 +21,11 @@ AFOBJS        = unix.o inet.o inet6.o ax25.o ipx.o ddp.o ipx.o netrom.o af.o rose.o ec
 AFGROBJS = inet_gr.o inet6_gr.o ipx_gr.o ddp_gr.o netrom_gr.o ax25_gr.o rose_gr.o getroute.o
 AFSROBJS = inet_sr.o inet6_sr.o netrom_sr.o ipx_sr.o setroute.o
 ACTOBJS  = slip_ac.o ppp_ac.o activate.o
-VARIA   = getargs.o masq_info.o proc.o util.o nstrcmp.o interface.o sockets.o util-ank.o
+VARIA   = getargs.o masq_info.o proc.o util.o nstrcmp.o interface.o sockets.o
+
+ifeq ($(HAVE_IP_TOOLS),1)
+VARIA  += util-ank.o
+endif
 
 OBJS   = $(sort $(VARIA) $(AFOBJS) $(HWOBJS) \
                $(AFGROBJS) $(AFSROBJS) $(ACTOBJS))
index 0e32378..7b79c08 100644 (file)
--- a/netstat.c
+++ b/netstat.c
@@ -6,7 +6,7 @@
  *              NET-3 Networking Distribution for the LINUX operating
  *              system.
  *
- * Version:     $Id: netstat.c,v 1.29 1999/07/28 21:53:34 philip Exp $
+ * Version:     $Id: netstat.c,v 1.30 1999/08/28 11:26:08 philip Exp $
  *
  * Authors:     Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de>
  *              Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
@@ -90,6 +90,7 @@
 #include "intl.h"
 #include "sockets.h"
 #include "interface.h"
+#include "util.h"
 
 #define PROGNAME_WIDTH 20