[PATCH] Do not include linux/socket.h

Jeff Bailey jbailey at ubuntu.com
Mon Jul 11 20:50:02 UTC 2005


Do not pull in linux/socket.h, there is nothing user space usable in
there, and we don't refer to anything in it that isn't otherwise pulled
in from sys/socket.h

(I'm not subscribed, please cc: me on replies)

2005-07-11  Jeff Bailey  <jbailey at ubuntu.com>

        * configure.ac: Remove unnecessary include of sys/socket.h

--- configure.old       2005-07-12 03:44:27.000000000 +0000
+++ configure.ac        2005-07-12 03:44:59.000000000 +0000
@@ -193,8 +193,8 @@

 AC_CHECK_FUNCS(sigaction strerror strsignal pread sys_siglist
_sys_siglist getdents mctl prctl sendmsg inet_ntop if_indextoname)
 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], [], [])
-AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h
linux/if_packet.h],
-                 [], [], [#include <linux/socket.h>])
+AC_CHECK_HEADERS([linux/icmp.h linux/in6.h linux/netlink.h
linux/if_packet.h])
+                 [], [])
 AC_CHECK_HEADERS([asm/sigcontext.h], [], [], [#include <signal.h>])
 AC_CHECK_HEADERS([netinet/tcp.h netinet/udp.h],,, [#include
<netinet/in.h>])







More information about the Strace-devel mailing list