summaryrefslogtreecommitdiffstats
path: root/srs.c
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-08-07 05:01:27 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-08-07 05:01:29 +0200
commit77155778b245f600cbf7b43445cb51282d8a2664 (patch)
treeae3048f131e4a69e893ffaf24cdc59146888be61 /srs.c
parentad04bd6011483f1072f0ac209184f55bdb6d36e2 (diff)
downloadhardware_replicant_libsamsung-ril-77155778b245f600cbf7b43445cb51282d8a2664.tar.gz
hardware_replicant_libsamsung-ril-77155778b245f600cbf7b43445cb51282d8a2664.tar.bz2
hardware_replicant_libsamsung-ril-77155778b245f600cbf7b43445cb51282d8a2664.zip
srs: include signal.h
srs.c uses functions like signal and define like SIGPIPE, which come from the signal.h header from the C standard library. While for some reason this didn't create compilation issues in Replicant 6, compiling libsamsung-ril with Guix[1] fails because of that. References: ----------- [1]At the time of writing, the libsamsung-ril is not yet in Guix, however an unofficial package does exist, and is being worked on[2]. If srs.c is patched to include signal.h, that unofficial libsamsung-ril packages does compile successfully. [2]https://git.replicant.us/contrib/GNUtoo/guix/log/?h=libsamsung-ril Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'srs.c')
-rw-r--r--srs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/srs.c b/srs.c
index 1f6c320..505210b 100644
--- a/srs.c
+++ b/srs.c
@@ -19,6 +19,7 @@
#include <errno.h>
#include <fcntl.h>
+#include <signal.h>
#include <stdlib.h>
#include <sys/eventfd.h>