summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorGreg Rose <gvrose8192@gmail.com>2018-08-13 16:00:16 -0700
committerBen Pfaff <blp@ovn.org>2018-08-13 17:42:22 -0700
commit44a629b5b80b4b37f99bc5631dee8bb055940329 (patch)
treeeeabb4bc7963c40b1f3187871395c8053d0e7123 /acinclude.m4
parentd0bde28610dd59ffa3b8c5f11940e9efba636ded (diff)
downloadopenvswitch-44a629b5b80b4b37f99bc5631dee8bb055940329.tar.gz
compat: Substitute more dependable define
The compat layer ip_tunnel_get_stats64 function was checking for the Linux kernel version to determine if the return was void or a pointer. This is not very reliable and caused compile warnings on SLES 12 SP3. In acinclude.m4 create a more reliable method of determining when to use a void return vs. a pointer return. Signed-off-by: Greg Rose <gvrose8192@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index ac81d0c6f..6e7ea4caf 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -880,6 +880,9 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
[OVS_DEFINE([HAVE_SKBUFF_CSUM_VALID])])
OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h],
[skb_checksum_simple_validate])
+ OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h],
+ [void.*ndo_get_stats64],
+ [OVS_DEFINE([HAVE_VOID_NDO_GET_STATS64])])
if cmp -s datapath/linux/kcompat.h.new \
datapath/linux/kcompat.h >/dev/null 2>&1; then