--- binutils-2.22.90.20120907.orig/bfd/config.in +++ binutils-2.22.90.20120907/bfd/config.in @@ -2,7 +2,7 @@ /* Check that config.h is #included before system headers (this works only for glibc, but that should be enough). */ -#if defined(__GLIBC__) && !defined(__CONFIG_H__) +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) # error config.h must be #included before system headers #endif #define __CONFIG_H__ 1 --- binutils-2.22.90.20120907.orig/gas/config.in +++ binutils-2.22.90.20120907/gas/config.in @@ -2,7 +2,7 @@ /* Check that config.h is #included before system headers (this works only for glibc, but that should be enough). */ -#if defined(__GLIBC__) && !defined(__CONFIG_H__) +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) # error config.h must be #included before system headers #endif #define __CONFIG_H__ 1 --- binutils-2.22.90.20120907.orig/ld/config.in +++ binutils-2.22.90.20120907/ld/config.in @@ -2,7 +2,7 @@ /* Check that config.h is #included before system headers (this works only for glibc, but that should be enough). */ -#if defined(__GLIBC__) && !defined(__CONFIG_H__) +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) # error config.h must be #included before system headers #endif #define __CONFIG_H__ 1 --- binutils-2.22.90.20120907.orig/gold/config.in +++ binutils-2.22.90.20120907/gold/config.in @@ -2,7 +2,7 @@ /* Check that config.h is #included before system headers (this works only for glibc, but that should be enough). */ -#if defined(__GLIBC__) && !defined(__CONFIG_H__) +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) # error config.h must be #included before system headers #endif #define __CONFIG_H__ 1 --- binutils-2.22.90.20120907.orig/opcodes/config.in +++ binutils-2.22.90.20120907/opcodes/config.in @@ -2,7 +2,7 @@ /* Check that config.h is #included before system headers (this works only for glibc, but that should be enough). */ -#if defined(__GLIBC__) && !defined(__CONFIG_H__) +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) # error config.h must be #included before system headers #endif #define __CONFIG_H__ 1 --- binutils-2.22.90.20120907.orig/binutils/config.in +++ binutils-2.22.90.20120907/binutils/config.in @@ -2,7 +2,7 @@ /* Check that config.h is #included before system headers (this works only for glibc, but that should be enough). */ -#if defined(__GLIBC__) +#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) # error config.h must be #included before system headers #endif