blob: 89ae00f7b4f9245c6d8f4f4de16ed4f53db5afbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ab,v 1.2 2014/12/09 15:10:47 mef Exp $
Make this package build when using gcc 2.95.
--- symbol.c.orig 2009-03-18 05:39:26.000000000 +0900
+++ src/symbol.c 2014-12-09 23:31:26.000000000 +0900
@@ -150,6 +150,7 @@ void addUnk(char *unk) {
snprintf(buf,256,"=%.4x_%s=%s",invoked->orig->times,invoked->orig->name,unk);
unk=buf;
}
+ {
look=isUnk(unk);
if (!look) {
unkLabel *u=(unkLabel *)malloc(sizeof(unkLabel));
@@ -158,6 +159,7 @@ void addUnk(char *unk) {
unkLabels=u;
u->label=(char *)malloc(strlen(unk)+1);
strcpy(u->label,unk);
+ }
}
}
}
|