blob: be9e3edb920fb5bc44f49807e7eec37ddb82d0c6 (
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
|
$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
|