aboutsummaryrefslogtreecommitdiffstats
path: root/community/gammu/include-sys-select-h.patch
diff options
context:
space:
mode:
authorinfo@mobile-stream.com <info@mobile-stream.com>2018-11-28 07:01:20 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-11-30 12:54:12 +0000
commit176cd41390663c0d842059b80e90dc3ef11e52e9 (patch)
tree9b6e4638adf491bd049bb258b0577c4d40883e99 /community/gammu/include-sys-select-h.patch
parentf068acfb28c773361e7353e0a0d64cc3b8772a9f (diff)
community/gammu: fix build
Compilation fails in libgammu/device/devfunc.c:socket_read() with a bunch of select()-related errors (probably due to some change in the include chain since the last rebuild). Fix by including <sys/select.h> explicitly. Test still passes on x86_64 and mipsel at least.
Diffstat (limited to 'community/gammu/include-sys-select-h.patch')
-rw-r--r--community/gammu/include-sys-select-h.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/community/gammu/include-sys-select-h.patch b/community/gammu/include-sys-select-h.patch
new file mode 100644
index 00000000000..a7d04feee3a
--- /dev/null
+++ b/community/gammu/include-sys-select-h.patch
@@ -0,0 +1,10 @@
+--- a/libgammu/device/devfunc.c
++++ b/libgammu/device/devfunc.c
+@@ -22,6 +22,7 @@
+ # include <errno.h>
+ # include <ctype.h>
+ # include <signal.h>
++# include <sys/select.h>
+ # include <sys/socket.h>
+ # include <sys/stat.h>
+ #endif