$NetBSD: patch-ag,v 1.3 2001/12/25 22:46:32 wiz Exp $

--- as/as.c.orig	1993-07-10 21:03:52.000000000 +0200
+++ as/as.c
@@ -7,7 +7,6 @@
 
 #include "const.h"
 #include "type.h"
-#include "byteord.h"
 #include "macro.h"
 #undef EXTERN
 #define EXTERN
@@ -31,12 +30,15 @@ int close P((int fd));
 int creat P((const char *path, int mode));
 int write P((int fd, const void *buf, unsigned nbytes));
 #else
-#undef NULL
 #include <sys/types.h>
 #include <fcntl.h>
 #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 +159,7 @@ char **argv;
 {
     char *arg;
     bool_t isnextarg;
-    char *nextarg;
+    char *nextarg = NULL;
 
     if (argc <= 1)
 	usage();
