Skip to content

Commit

Permalink
modify vr_compat.h to compile on centos 6.5 and later
Browse files Browse the repository at this point in the history
Closes-BUG: #1444953

Change-Id: Ibf124cf46cf4b07b073494707ee4d0c63da2bed3
  • Loading branch information
flavio-fernandes authored and anandhk-juniper committed Apr 18, 2015
1 parent a2fde20 commit 0fc4a0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/vr_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0))
#if (! (defined(RHEL_MAJOR) && defined(RHEL_MINOR) && \
(RHEL_MAJOR == 6) && (RHEL_MINOR == 5)))
(RHEL_MAJOR == 6) && (RHEL_MINOR >= 5)))
typedef u64 netdev_features_t;
#endif
#endif
Expand Down Expand Up @@ -139,7 +139,7 @@ static inline void skb_reset_mac_len(struct sk_buff *skb)

#ifndef ISRHOSKERNEL
#if (! (defined(RHEL_MAJOR) && defined(RHEL_MINOR) && \
(RHEL_MAJOR == 6) && (RHEL_MINOR == 5)))
(RHEL_MAJOR == 6) && (RHEL_MINOR >= 5)))
static bool can_checksum_protocol(netdev_features_t features, __be16 protocol)
{
return ((features & NETIF_F_GEN_CSUM) ||
Expand Down

0 comments on commit 0fc4a0b

Please sign in to comment.