git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2590
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h sys/endian.h endian.h termios.h unistd.h utime.h linux/fb.h linux/mii.h mqueue.h])
+AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h sys/endian.h endian.h termios.h unistd.h utime.h linux/fb.h linux/mii.h mqueue.h linux/compiler.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
#include <net/if.h> /* for struct ifreq et al */
#include <net/if_arp.h> /* for struct arpreq */
#include <net/route.h> /* for struct rtentry */
-#ifdef KERNEL_2_6
+#ifdef HAVE_LINUX_COMPILER_H
#include <linux/compiler.h> /* for __user definition */
#endif
-#include <asm/ipc.h> /* for struct ipc_kludge */
#include <linux/msg.h> /* for struct msgbuf */
+#include <asm/ipc.h> /* for struct ipc_kludge */
#include <linux/sem.h> /* for struct sembuf */
#include <scsi/sg.h> /* for the SG_* ioctls */