Lines 1-6
Link Here
|
1 |
--- common/Socket_unix.cpp |
1 |
--- common/Socket_unix.cpp.orig 2014-03-31 10:30:09 UTC |
2 |
+++ common/Socket_unix.cpp |
2 |
+++ common/Socket_unix.cpp |
3 |
@@ -18,7 +18,7 @@ |
3 |
@@ -12,13 +12,14 @@ |
|
|
4 |
#include <fcntl.h> |
5 |
#include <math.h> |
6 |
#include <string> |
7 |
+#include <cstring> |
8 |
|
9 |
#include "common/Socket.h" |
10 |
#include "common/Mutex.h" |
4 |
#include "common/Strings.h" |
11 |
#include "common/Strings.h" |
5 |
|
12 |
|
6 |
#define BUFSIZE 512 |
13 |
#define BUFSIZE 512 |
Lines 9-15
Link Here
|
9 |
#define SOCK_CLOEXEC 0 |
16 |
#define SOCK_CLOEXEC 0 |
10 |
#endif |
17 |
#endif |
11 |
|
18 |
|
12 |
@@ -128,8 +128,10 @@ std::wstring Socket::read(int timeout) { |
19 |
@@ -128,8 +129,10 @@ std::wstring Socket::read(int timeout) { |
13 |
|
20 |
|
14 |
void Socket::stopReadWait() { |
21 |
void Socket::stopReadWait() { |
15 |
TelldusCore::MutexLocker locker(&d->mutex); |
22 |
TelldusCore::MutexLocker locker(&d->mutex); |