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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
Apply fixes to build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Index: dibbler-1.0.1/IfaceMgr/IfaceMgr.cpp
===================================================================
--- dibbler-1.0.1.orig/IfaceMgr/IfaceMgr.cpp
+++ dibbler-1.0.1/IfaceMgr/IfaceMgr.cpp
@@ -16,6 +16,7 @@
#include <string>
#include <stdlib.h>
#include <errno.h>
+#include <sys/select.h>
#include "Portable.h"
#include "IfaceMgr.h"
#include "Iface.h"
Index: dibbler-1.0.1/IfaceMgr/SocketIPv6.h
===================================================================
--- dibbler-1.0.1.orig/IfaceMgr/SocketIPv6.h
+++ dibbler-1.0.1/IfaceMgr/SocketIPv6.h
@@ -18,6 +18,7 @@ class TIfaceSocket;
#include <iostream>
#include <string>
+#include <sys/select.h>
#include "Portable.h"
#include "DHCPConst.h"
Index: dibbler-1.0.1/Port-linux/ethtool-local.h
===================================================================
--- dibbler-1.0.1.orig/Port-linux/ethtool-local.h
+++ dibbler-1.0.1/Port-linux/ethtool-local.h
@@ -22,9 +22,9 @@
*/
typedef unsigned long long u64;
-typedef __uint32_t u32;
-typedef __uint16_t u16;
-typedef __uint8_t u8;
+typedef uint32_t u32;
+typedef uint16_t u16;
+typedef uint8_t u8;
#include "ethtool-kernel.h"
Index: dibbler-1.0.1/Port-linux/interface.c
===================================================================
--- dibbler-1.0.1.orig/Port-linux/interface.c
+++ dibbler-1.0.1/Port-linux/interface.c
@@ -26,6 +26,7 @@
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/if.h>
+#include <linux/sockios.h>
#include <syslog.h>
#include <string.h>
#include <errno.h>
@@ -35,13 +36,10 @@
#include <stdlib.h>
#include <assert.h>
-#include <net/if.h>
#include "ethtool-local.h"
#include "interface.h"
#include <stdarg.h>
-#include <linux/sockios.h>
-#include <linux/if_ether.h>
void daemon_log(int loglevel, const char *fmt,...)
{
Index: dibbler-1.0.1/Port-linux/lowlevel-linux-link-state.c
===================================================================
--- dibbler-1.0.1.orig/Port-linux/lowlevel-linux-link-state.c
+++ dibbler-1.0.1/Port-linux/lowlevel-linux-link-state.c
@@ -18,7 +18,6 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <bits/sigthread.h>
#include "Portable.h"
#include "interface.h"
Index: dibbler-1.0.1/Port-linux/utils.h
===================================================================
--- dibbler-1.0.1.orig/Port-linux/utils.h
+++ dibbler-1.0.1/Port-linux/utils.h
@@ -4,6 +4,7 @@
#include <asm/types.h>
//#include <resolv.h>
#include <linux/types.h>
+#include <sys/types.h>
#include "libnetlink.h"
#include "ll_map.h"
|