#include <sys/types.h> instead of <asm/types.h> in the configure
theck for icmpv6.h to make sure that __attribute_used__ is present,
which is needed indirectly.
This does seem to be correct to me, but there is always the chance
of a regression, so feedback would be appreciated
Observed with /usr/include/linux/icmpv6.h supplied by
linux-libc-dev 2.6.21-2 on ia64 Debian (unstable)
configure:30482: gcc -std=gnu99 -c -g -O2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2 conftest.c >&5
In file included from /usr/include/asm/intrinsics.h:18,
from /usr/include/asm/byteorder.h:10,
from /usr/include/linux/icmpv6.h:4,
from conftest.c:77:
/usr/include/asm/gcc_intrin.h:26: error: expected ',' or ';' before
'__attribute _used__'
Signed-off-by: Simon Horman <[EMAIL PROTECTED]>
Index: heartbeat/configure.in
===================================================================
--- heartbeat.orig/configure.in 2007-05-31 17:48:24.000000000 +0900
+++ heartbeat/configure.in 2007-05-31 17:50:34.000000000 +0900
@@ -1043,7 +1043,7 @@ CPPFLAGS="$CPPFLAGS $XML2HEAD"
dnl ************************************************************************
dnl * Check for linux/icmpv6.h to make enable the IPv6addr resource agent
-AC_CHECK_HEADERS(linux/icmpv6.h,[],[],[#include <asm/types.h>])
+AC_CHECK_HEADERS(linux/icmpv6.h,[],[],[#include <sys/types.h>])
AM_CONDITIONAL(USE_IPV6ADDR, test "$ac_cv_header_linux_icmpv6_h" = yes -a
$new_libnet = yes )
AC_CHECK_HEADERS(libxml/xpath.h)
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/