]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Autoconf test for asm/atomic.h. Hopefully fixes build probs on RH 7.3.
authorJulian Seward <jseward@acm.org>
Mon, 3 Jun 2002 13:45:23 +0000 (13:45 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 3 Jun 2002 13:45:23 +0000 (13:45 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@367

configure.in
coregrind/vg_unsafe.h
vg_unsafe.h

index 4782b8ca0bc10530cb4e84f579d36cea28a2017c..2fe40f131c41701255bf6f47a783a0f94495d9dc 100644 (file)
@@ -259,7 +259,7 @@ fi
 
 # 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
index 260def91b46f4f1faf692448aad441f96b05e0ef..cd9f3cd740b82c98697b02bd133b2eb5660a31bf 100644 (file)
@@ -50,6 +50,9 @@
 #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 */
index 260def91b46f4f1faf692448aad441f96b05e0ef..cd9f3cd740b82c98697b02bd133b2eb5660a31bf 100644 (file)
@@ -50,6 +50,9 @@
 #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 */