diff --git a/iscsiuio/src/unix/libs/bnx2x.c b/iscsiuio/src/unix/libs/bnx2x.c
index c5e7b71..94d2663 100644
--- a/iscsiuio/src/unix/libs/bnx2x.c
+++ b/iscsiuio/src/unix/libs/bnx2x.c
@@ -1,3 +1,4 @@
+#include <netinet/if_ether.h>
 /*
  * Copyright (c) 2009-2011, Broadcom Corporation
  * Copyright (c) 2014, QLogic Corporation
diff --git a/usr/idbm.c b/usr/idbm.c
index a0207e2..f347332 100644
--- a/usr/idbm.c
+++ b/usr/idbm.c
@@ -1,3 +1,4 @@
+#include <fcntl.h>
 /*
  * iSCSI Discovery Database Library
  *
diff --git a/usr/iscsi_net_util.c b/usr/iscsi_net_util.c
index 6339082..2a75e62 100644
--- a/usr/iscsi_net_util.c
+++ b/usr/iscsi_net_util.c
@@ -31,7 +31,7 @@
 #include <linux/sockios.h>
 #include <linux/if_vlan.h>
 #include <net/if_arp.h>
-#include <linux/if_ether.h>
+#include <netinet/if_ether.h>
 
 #include "sysdeps.h"
 #include "ethtool-copy.h"
--- a/iscsiuio/src/unix/libs/bnx2x.c
+++ b/iscsiuio/src/unix/libs/bnx2x.c
@@ -47,6 +47,7 @@
 #include <sys/mman.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 #include <sys/stat.h>
 #include <sys/user.h>
 #include <fcntl.h>
--- a/iscsiuio/src/unix/libs/bnx2.c
+++ b/iscsiuio/src/unix/libs/bnx2.c
@@ -42,6 +42,7 @@
 #include <arpa/inet.h>
 #include <sys/mman.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 #include <sys/stat.h>
 #include <sys/user.h>
 #include <fcntl.h>
--- a/iscsiuio/src/unix/libs/qedi.c.orig
+++ b/iscsiuio/src/unix/libs/qedi.c
@@ -46,6 +46,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#include <netinet/if_ether.h>
 #include <arpa/inet.h>
 #include <linux/types.h>
 #include <linux/sockios.h>

