void-packages/srcpkgs/kmscon/patches/define-SIGUNUSED-for-GLIBC.patch
maxice8 e20ebcf10a
kmscon: fix build with glibc>=2.26.
Closes #10868.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-01-16 10:03:20 +01:00

17 lines
426 B
Diff

--- src/pty.c
+++ src/pty.c
@@ -46,6 +46,14 @@
#define KMSCON_NREAD 16384
+/* ever since glibc 2.26 SIGUNUSED is no longer defined on any architerture
+ * http://man7.org/linux/man-pages/man7/signal.7.html
+ * according to signal(7) SIGUNUSED is synonymous with SIGSYS, musl defines it as such
+ */
+#ifdef __GLIBC__
+#define SIGUNUSED SIGSYS
+#endif
+
struct kmscon_pty {
unsigned long ref;
struct ev_eloop *eloop;