[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: [Linux-ha-dev] [PATCH] Use sys/types.h instead of asm/types.h in
From: Simon Horman <horms () verge ! net ! au>
Date: 2007-05-31 8:53:41
Message-ID: 20070531100223.283814FB4C () tabatha ! lab ! ultramonkey ! org
[Download RAW message or body]
#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 <horms@verge.net.au>
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: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic