From 7c6e850009a63baf51ef27e9bee3dff6b6b54c56 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 15 Dec 2017 17:32:44 +0300 Subject: ipoe,vlan_mon: define RHEL_MAJOR=0 if not set --- drivers/vlan_mon/vlan_mon.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/vlan_mon') diff --git a/drivers/vlan_mon/vlan_mon.c b/drivers/vlan_mon/vlan_mon.c index f4a99228..db6d022f 100644 --- a/drivers/vlan_mon/vlan_mon.c +++ b/drivers/vlan_mon/vlan_mon.c @@ -35,6 +35,10 @@ #define NETIF_F_HW_VLAN_FILTER NETIF_F_HW_VLAN_CTAG_FILTER #endif +#ifndef RHEL_MAJOR +#define RHEL_MAJOR 0 +#endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0) || RHEL_MAJOR == 7 #define vlan_tx_tag_present(skb) skb_vlan_tag_present(skb) #endif -- cgit v1.2.3