cvs commit: src/usr.sbin/kgzip kgzcmp.c

Ruslan Ermilov ru at FreeBSD.ORG
Wed Sep 1 13:52:31 PDT 2004


On Wed, Sep 01, 2004 at 07:23:02PM +0000, Julian Elischer wrote:
> julian      2004-09-01 19:23:02 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     usr.sbin/kgzip       kgzcmp.c 
>   Log:
>   When non kernel programs try to define _KERNEL
>   it always ends in tears.
>   
>   this is a temporary hack..
>   we'll remove it in a short while. I'll set teh MFC to remind me
>   
>   MFC after:      1 week
>   
>   Revision  Changes    Path
>   1.11      +2 -0      src/usr.sbin/kgzip/kgzcmp.c
> 
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
===================================================================
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 $
  */
 
-#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>
 
+#include <netinet/in.h>
+
 #include <err.h>
 #include <fcntl.h>
 #include <stdio.h>
%%%


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040901/368d5218/attachment.bin


More information about the cvs-src mailing list