aboutsummaryrefslogtreecommitdiff
path: root/utils/telldus-core/patches/100-add_includes.patch
blob: 30b46a16fb5112eead5fac3dce0ae0613db08972 (plain)
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
Added missing includes required by openwrt. Expected to be portable.
--- a/common/Socket_unix.cpp
+++ b/common/Socket_unix.cpp
@@ -8,9 +8,11 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/socket.h>
+#include <sys/select.h> // POSIX.1-2001
 #include <sys/un.h>
 #include <fcntl.h>
 #include <math.h>
+#include <cstring>
 #include <string>
 
 #include "common/Socket.h"
--- a/service/ConnectionListener_unix.cpp
+++ b/service/ConnectionListener_unix.cpp
@@ -13,6 +13,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <string>
+#include <cstring> // strcpy
 
 #include "service/ConnectionListener.h"
 #include "common/Socket.h"