Date: Mon, 22 Dec 1997 00:02:15 +1100 From: Bruce Evans <bde@zeta.org.au> To: eivind@FreeBSD.ORG, max@wide.ad.jp Cc: cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: Re: cvs commit: src/sys/net if_slvar.h Message-ID: <199712211302.AAA12318@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
> > eivind 1997/12/20 08:44:52 PST > > Modified files: > > sys/net if_slvar.h > > Log: > > Remove bogus #ifdef INET - SLIP doesn't compile without INET. > >I'm not sure at all if this change is causing this, but slattach on >-current doesn't compile: > >===> sbin/slattach >--- slattach.o --- >cc -nostdinc -O -pipe -I/usr/obj/usr/src/tmp/usr/include -c /usr/src/sbin/slattach/slattach.c >In file included from /usr/src/sbin/slattach/slattach.c:71: >/usr/obj/usr/src/tmp/usr/include/net/if_slvar.h:69: field `sc_comp' has incomplete type >*** Error code 1 It was. This is slattach.c's fault for including a private header. It wasn't even used. Bruce diff -c2 slattach.c~ slattach.c *** slattach.c~ Sat Jun 21 15:53:59 1997 --- slattach.c Sun Dec 21 23:57:14 1997 *************** *** 46,50 **** #endif /* not lint */ - #include <sys/param.h> #include <sys/types.h> #include <sys/ioctl.h> --- 46,49 ---- *************** *** 52,57 **** #include <sys/time.h> #include <fcntl.h> ! #include <netdb.h> #include <paths.h> #include <signal.h> --- 51,57 ---- #include <sys/time.h> + #include <err.h> #include <fcntl.h> ! #include <libutil.h> #include <paths.h> #include <signal.h> *************** *** 62,73 **** #include <termios.h> #include <unistd.h> - #include <libutil.h> - #include <err.h> - #include <netinet/in.h> #include <net/if.h> - #include <net/if_var.h> #include <net/slip.h> - #include <net/if_slvar.h> #define DEFAULT_BAUD 9600 --- 62,68 ----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712211302.AAA12318>