openwrt-packages/utils/telldus-core/patches/100-add_includes.patch

26 lines
642 B
Diff

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"