~ubuntu-branches/debian/experimental/binutils/experimental

« back to all changes in this revision

Viewing changes to debian/patches/kfreebsd-buildfix.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-09-09 15:41:54 UTC
  • Revision ID: package-import@ubuntu.com-20120909154154-zsw46kgyqtvr6nj2
Tags: 2.22.90.20120907-2
Fix build failure on kfreebsd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- binutils-2.22.90.20120907.orig/bfd/config.in
 
2
+++ binutils-2.22.90.20120907/bfd/config.in
 
3
@@ -2,7 +2,7 @@
 
4
 
 
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
 
10
 #endif
 
11
 #define __CONFIG_H__ 1
 
12
--- binutils-2.22.90.20120907.orig/gas/config.in
 
13
+++ binutils-2.22.90.20120907/gas/config.in
 
14
@@ -2,7 +2,7 @@
 
15
 
 
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
 
21
 #endif
 
22
 #define __CONFIG_H__ 1
 
23
--- binutils-2.22.90.20120907.orig/ld/config.in
 
24
+++ binutils-2.22.90.20120907/ld/config.in
 
25
@@ -2,7 +2,7 @@
 
26
 
 
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
 
32
 #endif
 
33
 #define __CONFIG_H__ 1
 
34
--- binutils-2.22.90.20120907.orig/gold/config.in
 
35
+++ binutils-2.22.90.20120907/gold/config.in
 
36
@@ -2,7 +2,7 @@
 
37
 
 
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
 
43
 #endif
 
44
 #define __CONFIG_H__ 1
 
45
--- binutils-2.22.90.20120907.orig/opcodes/config.in
 
46
+++ binutils-2.22.90.20120907/opcodes/config.in
 
47
@@ -2,7 +2,7 @@
 
48
 
 
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
 
54
 #endif
 
55
 #define __CONFIG_H__ 1
 
56
--- binutils-2.22.90.20120907.orig/binutils/config.in
 
57
+++ binutils-2.22.90.20120907/binutils/config.in
 
58
@@ -2,7 +2,7 @@
 
59
 
 
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
 
65
 #endif
 
66