]> git.proxmox.com Git - ovs.git/commit
compat: Substitute more dependable define
authorGreg Rose <gvrose8192@gmail.com>
Mon, 13 Aug 2018 23:00:16 +0000 (16:00 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 14 Aug 2018 00:42:22 +0000 (17:42 -0700)
commit44a629b5b80b4b37f99bc5631dee8bb055940329
treeeeabb4bc7963c40b1f3187871395c8053d0e7123
parentd0bde28610dd59ffa3b8c5f11940e9efba636ded
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>
acinclude.m4
datapath/linux/compat/include/net/ip_tunnels.h
datapath/linux/compat/ip_tunnels_core.c