From: Julian Seward Date: Mon, 3 Jun 2002 13:45:23 +0000 (+0000) Subject: Autoconf test for asm/atomic.h. Hopefully fixes build probs on RH 7.3. X-Git-Tag: svn/VALGRIND_1_0_3~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73a57bc595382a1914251433e317ecfccfa3921f;p=thirdparty%2Fvalgrind.git Autoconf test for asm/atomic.h. Hopefully fixes build probs on RH 7.3. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@367 --- diff --git a/configure.in b/configure.in index 4782b8ca0b..2fe40f131c 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/coregrind/vg_unsafe.h b/coregrind/vg_unsafe.h index 260def91b4..cd9f3cd740 100644 --- a/coregrind/vg_unsafe.h +++ b/coregrind/vg_unsafe.h @@ -50,6 +50,9 @@ #include /* for struct sembuf */ #include /* for ISDN ioctls */ +#ifdef HAVE_ASM_ATOMIC_H +#include /* necessary for module.h */ +#endif #include /* for struct module */ #include /* for the SG_* ioctls */ #include /* for struct sched_param */ diff --git a/vg_unsafe.h b/vg_unsafe.h index 260def91b4..cd9f3cd740 100644 --- a/vg_unsafe.h +++ b/vg_unsafe.h @@ -50,6 +50,9 @@ #include /* for struct sembuf */ #include /* for ISDN ioctls */ +#ifdef HAVE_ASM_ATOMIC_H +#include /* necessary for module.h */ +#endif #include /* for struct module */ #include /* for the SG_* ioctls */ #include /* for struct sched_param */