1
--- binutils-2.22.90.20120907.orig/bfd/config.in
2
+++ binutils-2.22.90.20120907/bfd/config.in
5
/* Check that config.h is #included before system headers
6
(this works only for glibc, but that should be enough). */
7
-#if defined(__GLIBC__) && !defined(__CONFIG_H__)
8
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
9
# error config.h must be #included before system headers
11
#define __CONFIG_H__ 1
12
--- binutils-2.22.90.20120907.orig/gas/config.in
13
+++ binutils-2.22.90.20120907/gas/config.in
16
/* Check that config.h is #included before system headers
17
(this works only for glibc, but that should be enough). */
18
-#if defined(__GLIBC__) && !defined(__CONFIG_H__)
19
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
20
# error config.h must be #included before system headers
22
#define __CONFIG_H__ 1
23
--- binutils-2.22.90.20120907.orig/ld/config.in
24
+++ binutils-2.22.90.20120907/ld/config.in
27
/* Check that config.h is #included before system headers
28
(this works only for glibc, but that should be enough). */
29
-#if defined(__GLIBC__) && !defined(__CONFIG_H__)
30
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
31
# error config.h must be #included before system headers
33
#define __CONFIG_H__ 1
34
--- binutils-2.22.90.20120907.orig/gold/config.in
35
+++ binutils-2.22.90.20120907/gold/config.in
38
/* Check that config.h is #included before system headers
39
(this works only for glibc, but that should be enough). */
40
-#if defined(__GLIBC__) && !defined(__CONFIG_H__)
41
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
42
# error config.h must be #included before system headers
44
#define __CONFIG_H__ 1
45
--- binutils-2.22.90.20120907.orig/opcodes/config.in
46
+++ binutils-2.22.90.20120907/opcodes/config.in
49
/* Check that config.h is #included before system headers
50
(this works only for glibc, but that should be enough). */
51
-#if defined(__GLIBC__) && !defined(__CONFIG_H__)
52
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
53
# error config.h must be #included before system headers
55
#define __CONFIG_H__ 1
56
--- binutils-2.22.90.20120907.orig/binutils/config.in
57
+++ binutils-2.22.90.20120907/binutils/config.in
60
/* Check that config.h is #included before system headers
61
(this works only for glibc, but that should be enough). */
62
-#if defined(__GLIBC__)
63
+#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__)
64
# error config.h must be #included before system headers