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
31
32
33
34
|
$NetBSD: patch-af,v 1.2 2006/01/25 15:19:17 joerg 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);
|