[packages] strace: fix compilation against Linux 2.6.32+ (#6604)
[openwrt/svn-archive/archive.git] / utils / strace / patches / 000-linux_socket.patch
1 diff -Nurb strace-4.5.19/configure strace-4.5.19-uClibc-0.9.30.2/configure
2 --- strace-4.5.19/configure 2009-10-21 19:41:11.000000000 +0200
3 +++ strace-4.5.19-uClibc-0.9.30.2/configure 2010-01-29 14:41:35.897738564 +0100
4 @@ -5880,7 +5880,7 @@
5 do :
6 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <stddef.h>
8 -#include <linux/socket.h>
9 +#include <sys/socket.h>
10 "
11 eval as_val=\$$as_ac_Header
12 if test "x$as_val" = x""yes; then :
13 diff -Nurb strace-4.5.19/configure.ac strace-4.5.19-uClibc-0.9.30.2/configure.ac
14 --- strace-4.5.19/configure.ac 2009-10-12 21:54:43.000000000 +0200
15 +++ strace-4.5.19-uClibc-0.9.30.2/configure.ac 2010-01-29 14:42:02.880738326 +0100
16 @@ -258,7 +258,7 @@
17 ], [], [])
18 AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h],
19 [], [], [#include <stddef.h>
20 -#include <linux/socket.h>])
21 +#include <sys/socket.h>])
22 AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>])
23 AC_CHECK_TYPES([struct sigcontext_struct,
24 struct sigcontext],,, [#include <signal.h>])