void-packages/srcpkgs/gammu/patches/fix-musl.patch
2019-02-16 05:45:36 -02:00

37 lines
988 B
Diff

diff --git a/libgammu/device/devfunc.c b/libgammu/device/devfunc.c
index e751cd3..631afb5 100644
--- libgammu/device/devfunc.c
+++ libgammu/device/devfunc.c
@@ -24,6 +24,7 @@
# include <signal.h>
# include <sys/socket.h>
# include <sys/stat.h>
+# include <sys/select.h>
#endif
#include "devfunc.h"
diff --git a/libgammu/device/proxy/proxy.c b/libgammu/device/proxy/proxy.c
index c68e00e..57f3c4d 100644
--- libgammu/device/proxy/proxy.c
+++ libgammu/device/proxy/proxy.c
@@ -10,6 +10,7 @@
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
+#include <sys/select.h>
#include <unistd.h>
#include "../../gsmcomon.h"
diff --git a/libgammu/device/serial/ser_unx.c b/libgammu/device/serial/ser_unx.c
index c0fbd57..5699238 100644
--- libgammu/device/serial/ser_unx.c
+++ libgammu/device/serial/ser_unx.c
@@ -28,6 +28,7 @@
#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/select.h>
#ifdef HAVE_I_SETSIG
#include <stropts.h>
#endif