kmscon: fix build with glibc>=2.26.

Closes #10868.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
This commit is contained in:
maxice8 2018-01-16 04:43:44 -02:00 committed by Enno Boland
parent 222017237e
commit e20ebcf10a
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
--- 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;

View File

@ -1,7 +1,7 @@
# Template file for 'kmscon'
pkgname=kmscon
version=8
revision=5
revision=6
lib32disabled=yes
build_style=gnu-configure
configure_args="--disable-static --disable-multi-seat"