diff options
| author | Ben Pfaff <blp@nicira.com> | 2009-10-09 09:41:29 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2009-10-09 09:44:51 -0700 |
| commit | aed944953be7c8d71beada565ac9923ab86855e5 (patch) | |
| tree | f2451382fd9d4d814b7ad59ffe48842e7923980d /acinclude.m4 | |
| parent | bf7446a4f4b17cebb4500fe9d57b8d240567795e (diff) | |
| download | openvswitch-aed944953be7c8d71beada565ac9923ab86855e5.tar.gz | |
datapath: Fix build with Centos 5.3 kernel.
Centos 5.3 backports more functions from later kernel versions to 2.6.18,
so the kernel version number is no longer a reliable way to check for these
functions. Thus, add a "configure" test for them.
Reported-by: Paulo Cravero <pcravero@as2594.net>
Diffstat (limited to 'acinclude.m4')
| -rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 429492097..d5d7c0959 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -133,6 +133,10 @@ AC_DEFUN([OVS_CHECK_LINUX26_COMPAT], [ [OVS_DEFINE([HAVE_NLA_NUL_STRING])]) OVS_GREP_IFELSE([$KSRC26/include/linux/err.h], [ERR_CAST], [OVS_DEFINE([HAVE_ERR_CAST])]) + OVS_GREP_IFELSE([$KSRC26/include/net/checksum.h], [csum_unfold], + [OVS_DEFINE([HAVE_CSUM_UNFOLD])]) + OVS_GREP_IFELSE([$KSRC26/include/linux/skbuff.h], [skb_cow], + [OVS_DEFINE([HAVE_SKB_COW])]) OVS_CHECK_LOG2_H OVS_CHECK_VETH if cmp -s datapath/linux-2.6/kcompat.h.new \ |
