Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jan 1998 13:13:28 +0000
From:      James Raynard <fbugs@jraynard.demon.co.uk>
To:        nathan@limbo.rtfm.net
Cc:        freebsd-bugs@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: misc/5403
Message-ID:  <19980103131328.19809@jraynard.demon.co.uk>

next in thread | raw e-mail | index | archive | help
> On Thu, Jan 01, 1998 at 11:44:52AM -0500, Nathan Dorfman wrote:
> 
> Yeah, this port's #include list is very broken. All of these (incompatible?)
> headers that it includes need a certain order and shuffling them around fixes
> one compiler error and generates another. Someone really should take a look 
> at /usr/ports/net/trafshow.

I don't claim this is ncessarily the most correct solution, but the
following gets interfaces.c to compile on -current.  I'm not going
to commit this myself because

1) I can't test it
2) I don't know if works on -stable
3) The skeleton is broken as well (this file gets patched twice,
   for starters).
4) I've spent too much time on this already (see 3)

#include <sys/param.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <net/slip.h>
#include <net/if_var.h>
#if 0
#include <net/if_slvar.h>
#endif
#ifdef __FreeBSD__
#include <net/if_ppp.h>
#include <net/ethernet.h>
#else
#include <net/ppp_proto.h>
#endif
#if 0
#include <netinet/if_ether.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <netinet/udp_var.h>
#include <netinet/tcp.h>
#include <netinet/tcpip.h>
#endif
#include <netinet/in.h>
#include <net/bpf.h>

-- 
In theory, theory is better than practice.  In practice, it isn't.
James Raynard, Edinburgh, Scotland.   http://www.freebsd.org/~jraynard/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980103131328.19809>