summaryrefslogtreecommitdiff
path: root/devel/bcc/patches/patch-ai
blob: b8e998c0988309d3df005847a4f020df7cd3c786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ai,v 1.3 2006/10/10 06:56:05 uebayasi Exp $

--- as/genobj.c.orig	1993-07-10 21:10:53.000000000 +0200
+++ as/genobj.c
@@ -18,7 +18,6 @@ unsigned strlen P((const char *s));
 #ifdef POSIX_HEADERS_MISSING
 int write P((int fd, const void *buf, unsigned nbytes));
 #else
-#undef NULL
 #include <sys/types.h>
 #include <unistd.h>
 #endif
@@ -385,8 +384,8 @@ PUBLIC void objheader()
 	    do
 	    {
 		if ((symptr->type & EXPBIT || symptr->data & IMPBIT) ||
-		    !globals_only_in_obj && symptr->name[0] != '.' &&
-		    !(symptr->type & (MNREGBIT | MACBIT | VARBIT)))
+		    (!globals_only_in_obj && symptr->name[0] != '.' &&
+		    !(symptr->type & (MNREGBIT | MACBIT | VARBIT))))
 		{
 		    if (copyptr >= (struct sym_s **) heapend)
 		    {