packages/utils/telldus-core/patches/100-add_includes.patch
Rosen Penev 20ab70dbd8 telldus-core: add missing include
Needed for memset.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-09-18 22:57:43 -07:00

25 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"