firmware
changeset 950:a43d74908821
The 2.6.32 kernel headers broke the strace build, this fixes it.
| author | Rob Landley <rob@landley.net> |
|---|---|
| date | Tue Jan 12 21:58:11 2010 -0600 (8 weeks ago) |
| parents | 1d6155f9be9f |
| children | e6fd6f4fe67d |
| files | sources/patches/strace-fixnet.patch |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sources/patches/strace-fixnet.patch Tue Jan 12 21:58:11 2010 -0600 1.3 @@ -0,0 +1,27 @@ 1.4 +The linux/socket.h header was lobotomized in Linux 2.6.32 by 1.5 +Ben Hutchings in git 9c501935a3cd (for no readily apparent reason). 1.6 + 1.7 +diff -ru strace/configure strace2/configure 1.8 +--- strace/configure 2008-08-28 16:36:06.000000000 -0500 1.9 ++++ strace2/configure 2010-01-12 21:26:44.000000000 -0600 1.10 +@@ -7580,7 +7580,7 @@ 1.11 + cat >>conftest.$ac_ext <<_ACEOF 1.12 + /* end confdefs.h. */ 1.13 + #include <stddef.h> 1.14 +-#include <linux/socket.h> 1.15 ++#include <sys/socket.h> 1.16 + 1.17 + #include <$ac_header> 1.18 + _ACEOF 1.19 +diff -ru strace/configure.ac strace2/configure.ac 1.20 +--- strace/configure.ac 2008-08-28 16:15:56.000000000 -0500 1.21 ++++ strace2/configure.ac 2010-01-12 21:26:28.000000000 -0600 1.22 +@@ -196,7 +196,7 @@ 1.23 + AC_CHECK_HEADERS([sys/reg.h sys/filio.h sys/acl.h sys/asynch.h sys/door.h stropts.h sys/conf.h sys/stream.h sys/tihdr.h sys/tiuser.h sys/sysconfig.h ioctls.h sys/ioctl.h sys/ptrace.h termio.h linux/ptrace.h asm/reg.h sys/uio.h sys/aio.h poll.h sys/poll.h sys/vfs.h asm/sysmips.h linux/utsname.h sys/nscsys.h mqueue.h sys/epoll.h libaio.h inttypes.h], [], []) 1.24 + AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h linux/if_packet.h], 1.25 + [], [], [#include <stddef.h> 1.26 +-#include <linux/socket.h>]) 1.27 ++#include <sys/socket.h>]) 1.28 + AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>]) 1.29 + AC_CHECK_TYPES([struct sigcontext_struct],,, [#include <signal.h>]) 1.30 + AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include <netinet/in.h>])
