pkgsrc/devel/bcc/patches/patch-aq

27 lines
613 B
Text

$NetBSD: patch-aq,v 1.2 2006/10/10 06:56:05 uebayasi Exp $
--- ld/ld.c.orig 1994-02-19 23:36:05.000000000 +0100
+++ ld/ld.c
@@ -3,7 +3,6 @@
/* Copyright (C) 1994 Bruce Evans */
#include "const.h"
-#include "byteord.h"
#include "type.h"
#include "globvar.h"
@@ -22,10 +21,13 @@ unsigned long strtoul P((const char *s,
#define R_OK 0
int access P((const char *path, int amode));
#else
-#undef NULL
#include <unistd.h>
#endif
+/* BSD #defines this in <machine/endian.h>, but with another sense */
+#undef BIG_ENDIAN
+#include "byteord.h"
+
#define MAX_LIBS (NR_STDLIBS + 5)
#define NR_STDLIBS 1