Subject: Re: gkermit fails to build
To: None <current-users@NetBSD.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: current-users
Date: 11/01/2006 18:10:01
--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Jukka Salmi --> current-users (2006-11-01 17:04:30 +0100):
> src/gnu/dist/gkermit/gkermit.h should probably include string.h:

The attached patch sees to fix the build problems.


Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

Index: gnu/dist/gkermit/gcmdline.c
===================================================================
RCS file: /cvsroot/src/gnu/dist/gkermit/gcmdline.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 gcmdline.c
--- gnu/dist/gkermit/gcmdline.c	1 Nov 2006 13:03:53 -0000	1.1.1.1
+++ gnu/dist/gkermit/gcmdline.c	1 Nov 2006 16:11:32 -0000
@@ -53,7 +53,6 @@ _MYPROTOTYPE( VOID fatal, (char *) );
 _MYPROTOTYPE( VOID usage, (void) );
 
 #ifndef NOGETENV
-_MYPROTOTYPE( char * getenv, (char *) );
 #define GARGC 32
 #define GBUFSIZ 256
 static char gbuf[GBUFSIZ], *gargs[GARGC], *gptr = NULL;
Index: gnu/dist/gkermit/gkermit.h
===================================================================
RCS file: /cvsroot/src/gnu/dist/gkermit/gkermit.h,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 gkermit.h
--- gnu/dist/gkermit/gkermit.h	1 Nov 2006 13:03:57 -0000	1.1.1.1
+++ gnu/dist/gkermit/gkermit.h	1 Nov 2006 16:11:33 -0000
@@ -31,6 +31,8 @@
 #define _GKERMIT_H
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 /* Kermit protocol definitions */
 

--sm4nu43k4a2Rpi4c--