Subject: Re: carp_stats in netstat -- INET6 ?
To: Iain Hibbert <plunky@rya-online.net>
From: Rui Paulo <rpaulo@fnop.net>
List: current-users
Date: 05/23/2006 15:39:32
On 2006.05.23 08:45:14 +0100, Iain Hibbert wrote:
> Hi,
> CVS update last night, build failed.
>
> # compile netstat/inet.o
> /home/tools/bin/i386--netbsdelf-gcc -O2 -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional
> -Werror -DIPSEC -nostdinc -isystem /home/obj/destdir.i386/usr/include
> -c /home/plunky/src/usr.bin/netstat/inet.c
> /home/plunky/src/usr.bin/netstat/inet.c:639: warning: no previous
> prototype for `carp_stats'
>
> *** Failed target: inet.o
>
> which seems to be because carp_stats() is prototyped inside #ifdef INET6
> but defined in full view.. patch attached seems to work (I dont think
> CARP is IPv6 only?)
You are correct, I applied your patch.
Thanks.
-- Rui Paulo