git-svn-id: svn://svn.valgrind.org/valgrind/trunk@367
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h termios.h unistd.h utime.h])
+AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h sys/socket.h sys/statfs.h sys/time.h termios.h unistd.h utime.h asm/atomic.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
#include <linux/sem.h> /* for struct sembuf */
#include <linux/isdn.h> /* for ISDN ioctls */
+#ifdef HAVE_ASM_ATOMIC_H
+#include <asm/atomic.h> /* necessary for module.h */
+#endif
#include <linux/module.h> /* for struct module */
#include <scsi/sg.h> /* for the SG_* ioctls */
#include <sched.h> /* for struct sched_param */
#include <linux/sem.h> /* for struct sembuf */
#include <linux/isdn.h> /* for ISDN ioctls */
+#ifdef HAVE_ASM_ATOMIC_H
+#include <asm/atomic.h> /* necessary for module.h */
+#endif
#include <linux/module.h> /* for struct module */
#include <scsi/sg.h> /* for the SG_* ioctls */
#include <sched.h> /* for struct sched_param */