summaryrefslogtreecommitdiff
path: root/devel/bcc/patches/patch-ag
blob: e7537acde838bc7c6ba5a79b04c181762467fec0 (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
31
32
$NetBSD: patch-ag,v 1.3 2001/12/25 22:46:32 wiz Exp $

--- as/as.c.orig	Sat Jul 10 21:03:52 1993
+++ as/as.c	Tue Dec 25 23:03:46 2001
@@ -7,7 +7,6 @@
 
 #include "const.h"
 #include "type.h"
-#include "byteord.h"
 #include "macro.h"
 #undef EXTERN
 #define EXTERN
@@ -37,6 +36,10 @@
 #include <unistd.h>
 #endif
 
+/* BSD #defines this in <machine/endian.h>, but with another sense */
+#undef BIG_ENDIAN
+#include "byteord.h"
+
 PUBLIC char hexdigit[] = "0123456789ABCDEF";	/* XXX - ld uses lower case */
 
 PRIVATE struct block_s hid_blockstak[MAXBLOCK];	/* block stack */
@@ -157,7 +160,7 @@
 {
     char *arg;
     bool_t isnextarg;
-    char *nextarg;
+    char *nextarg = NULL;
 
     if (argc <= 1)
 	usage();