summaryrefslogtreecommitdiff
path: root/devel/mkcmd/patches/patch-aa
blob: 6433835f4c0c97f699248d1b89e5bedeb9e2920f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$NetBSD: patch-aa,v 1.2 2004/11/10 16:43:50 epg Exp $

--- bin/mkcmd/main.c.orig	2000-07-30 17:56:23.000000000 -0400
+++ bin/mkcmd/main.c
@@ -36,9 +36,7 @@ static char rcsid[] =
  * do the hard work.  mkcmd rembers how it was built and builds all
  * subsequent parsers that way...
  */
-#if !defined(MSDOS)
-extern int errno;
-#endif
+#include <errno.h>
 
 
 #if USE_STRINGS
@@ -47,14 +45,6 @@ extern int errno;
 #include <string.h>
 #endif
 
-#if USE_MALLOC_H
-#include <malloc.h>
-#else
-#if NEED_MALLOC_EXTERN
-extern char *malloc(), *calloc(), *realloc();
-#endif
-#endif
-
 /* from std_version.m */
 /* from std_help.m */
 /* from scan.m */