$NetBSD: patch-af,v 1.1 2004/11/10 16:43:50 epg Exp $

--- bin/mkcmd/mkcmd.c.orig	2000-07-30 17:56:23.000000000 -0400
+++ bin/mkcmd/mkcmd.c
@@ -26,14 +26,6 @@
 #include <string.h>
 #endif
 
-#if USE_MALLOC_H
-#include <malloc.h>
-#else
-#if NEED_MALLOC_EXTERN
-extern char *malloc(), *calloc(), *realloc();
-#endif
-#endif
-
 LIST
 	LIComm,			/* header comments			*/
 	aLIExits[11],		/* user hooks jusr before exit		*/
@@ -119,14 +111,6 @@ LIST *pLITop;
 		Emit(fp, "#include %a\n", nilOR, *ppcComm, 0);
 	}
 
-#if HAVE_SIMPLE_ERRNO
-	if (fWeGuess) {
-		if (IS_USED(CvtType('F')) || IS_USED(CvtType('D'))) {
-			Emit(fp, "extern int errno;\n", nilOR, nil, 0);
-		}
-	}
-#endif
-
 #if !HAVE_STRERROR
 	if (fWeGuess) {
 		Emit(fp, "extern char *sys_errlist[];#define strerror(Me) (sys_errlist[Me])\n", nilOR, nil, 0);
