kmscon: fix build with glibc>=2.26.
Closes #10868. Signed-off-by: Enno Boland <gottox@voidlinux.eu>
This commit is contained in:
parent
222017237e
commit
e20ebcf10a
2 changed files with 18 additions and 1 deletions
17
srcpkgs/kmscon/patches/define-SIGUNUSED-for-GLIBC.patch
Normal file
17
srcpkgs/kmscon/patches/define-SIGUNUSED-for-GLIBC.patch
Normal 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;
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'kmscon'
|
# Template file for 'kmscon'
|
||||||
pkgname=kmscon
|
pkgname=kmscon
|
||||||
version=8
|
version=8
|
||||||
revision=5
|
revision=6
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --disable-multi-seat"
|
configure_args="--disable-static --disable-multi-seat"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue