datapath: Check for Centos 6.4 backports.
[cascardo/ovs.git] / datapath / linux / compat / include / linux / etherdevice.h
index 7f04c96..d1cc79c 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/version.h>
 #include_next <linux/etherdevice.h>
 
+#ifndef HAVE_ETH_HW_ADDR_RANDOM
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
 static inline void eth_hw_addr_random(struct net_device *dev)
 {
@@ -15,5 +16,6 @@ static inline void eth_hw_addr_random(struct net_device *dev)
        dev_hw_addr_random(dev, dev->dev_addr);
 }
 #endif
+#endif
 
 #endif