Date: Wed, 1 Sep 2004 23:52:26 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Julian Elischer <julian@FreeBSD.ORG> Cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/kgzip kgzcmp.c Message-ID: <20040901205226.GA793@ip.net.ua> In-Reply-To: <200409011923.i81JN27E019623@repoman.freebsd.org> References: <200409011923.i81JN27E019623@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 01, 2004 at 07:23:02PM +0000, Julian Elischer wrote: > julian 2004-09-01 19:23:02 UTC >=20 > FreeBSD src repository >=20 > Modified files: > usr.sbin/kgzip kgzcmp.c=20 > Log: > When non kernel programs try to define _KERNEL > it always ends in tears. > =20 > this is a temporary hack.. > we'll remove it in a short while. I'll set teh MFC to remind me > =20 > MFC after: 1 week > =20 > Revision Changes Path > 1.11 +2 -0 src/usr.sbin/kgzip/kgzcmp.c >=20 The include list was bogus here, here's the correct fix. The actual bug is in the <a.out.h> header though. %%% Index: kgzcmp.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/usr.sbin/kgzip/kgzcmp.c,v retrieving revision 1.11 diff -u -r1.11 kgzcmp.c --- kgzcmp.c 1 Sep 2004 19:23:02 -0000 1.11 +++ kgzcmp.c 1 Sep 2004 20:49:12 -0000 @@ -26,15 +26,12 @@ * $FreeBSD: src/usr.sbin/kgzip/kgzcmp.c,v 1.11 2004/09/01 19:23:02 julian= Exp $ */ =20 -#define _KERNEL -#define KLD_MODULE -#include <sys/param.h> -#undef KLD_MODULE -#undef _KERNEL #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> =20 +#include <netinet/in.h> + #include <err.h> #include <fcntl.h> #include <stdio.h> %%% Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBNjaKqRfpzJluFF4RAjMcAJ94HegJ8z5sTGpzCiZ9QJTUKCgwBwCbBC7d rO+eXsbn84mmDR08tzetqxY= =sayG -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040901205226.GA793>