From 16c3dc7a407101243d2056d2c93e61dce1a05350 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 31 Mar 2017 16:08:45 -0700
Subject: [PATCH 3/5] Define ETH_ALEN

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 libnm-core/nm-utils.h          | 1 +
 src/platform/wifi/wifi-utils.h | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/libnm-core/nm-utils.h b/libnm-core/nm-utils.h
index 156ccae..68e222b 100644
--- a/libnm-core/nm-utils.h
+++ b/libnm-core/nm-utils.h
@@ -29,6 +29,7 @@
 
 /* For ETH_ALEN and INFINIBAND_ALEN */
 //#include <linux/if_ether.h>
+#define ETH_ALEN	6		/* Octets in one ethernet addr	 */
 #include <linux/if_infiniband.h>
 #include <netinet/in.h>
 
diff --git a/src/platform/wifi/wifi-utils.h b/src/platform/wifi/wifi-utils.h
index 84f5ce9..33a838d 100644
--- a/src/platform/wifi/wifi-utils.h
+++ b/src/platform/wifi/wifi-utils.h
@@ -24,6 +24,8 @@
 
 //#include <net/ethernet.h>
 
+#define ETH_ALEN	6		/* Octets in one ethernet addr	 */
+
 #include "nm-dbus-interface.h"
 
 typedef struct WifiData WifiData;
-- 
2.12.1

