aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-iscsi/add-missing-headers.patch
blob: 5895224885c416307fe6d71811ffbf21151a9590 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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>