patches/strace/4.5.19/160-fix-check-for-linux-netlink.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 08 23:37:12 2010 +0200 (2010-10-08)
branch1.8
changeset 2150 f97a8ad2b172
permissions -rw-r--r--
cc/gcc: fix C++ headers location

In case we build the C++ compiler, we have to tell gcc where to put the C++
headers, or else it will try to # put it in prefix/tuple/include, which we
make a symlink to sysroot/usr/include during the build, and that we delete
(the symlink!) after the build, but gcc will not look in sysroot/usr/inlcude
for C++ headers by default.

Implements a fix suggested by: Bryan Hundven <bryanhundven@gmail.com>

Reported-by: Anthony Foiani <anthony.foiani@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from a0924619112015bdaa81a0a2313d21ef38607bc2)
jocke@1671
     1
Dmitry V. Levin [Tue, 3 Nov 2009 16:49:49 +0000]
jocke@1671
     2
jocke@1671
     3
Fix check for linux/netlink.h on Linux 2.6.32-rc5+
jocke@1671
     4
jocke@1671
     5
* configure.ac (AC_CHECK_HEADERS): In check for linux/netlink.h, include 
jocke@1671
     6
  sys/socket.h instead of linux/socket.h beforehand.
jocke@1671
     7
jocke@1671
     8
diff --git a/configure.ac b/configure.ac
jocke@1671
     9
--- a/configure.ac
jocke@1671
    10
+++ b/configure.ac
jocke@1671
    11
@@ -258,7 +258,7 @@ AC_CHECK_HEADERS([ \
jocke@1671
    12
 ], [], [])
jocke@1671
    13
 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
jocke@1671
    14
                  [], [], [#include <stddef.h>
jocke@1671
    15
-#include <linux/socket.h>])
jocke@1671
    16
+#include <sys/socket.h>])
jocke@1671
    17
 AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>])
jocke@1671
    18
 AC_CHECK_TYPES([struct sigcontext_struct,
jocke@1671
    19
 		struct sigcontext],,, [#include <signal.h>])