aboutsummaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2010-04-20 22:42:35 -0700
committerJustin Pettit <jpettit@nicira.com>2010-04-22 03:37:45 -0700
commitea32310720d9d07eeb668e404a5062bd9bce832d (patch)
tree472eeb7adfd672c95a6076a259d1f614bb533adc /acinclude.m4
parent291a0f6b6e05fe5be28b935436abb5a958334885 (diff)
datapath: Define kmemdup() for kernels older than 2.6.19
The new GRE code requires the kmemdup function, but it's not available on 2.6.18 kernels. It has been backported to Xen, so only define it for non-Xen kernels older than 2.6.19.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 23097b2e..64384d90 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -162,6 +162,8 @@ AC_DEFUN([OVS_CHECK_LINUX26_COMPAT], [
[OVS_DEFINE([HAVE_NLA_GET_BE16])])
OVS_GREP_IFELSE([$KSRC26/include/linux/in.h], [ipv4_is_multicast],
[OVS_DEFINE([HAVE_IPV4_IS_MULTICAST])])
+ OVS_GREP_IFELSE([$KSRC26/include/linux/string.h $KSRC26/include/linux/slab.h],
+ [kmemdup], [OVS_DEFINE([HAVE_KMEMDUP])])
# Check for the proto_data_valid member in struct sk_buff. The [^@]
# is necessary because some versions of this header remove the
# member but retain the kerneldoc comment that describes it (which