diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-19 13:03:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-20 08:02:58 +0000 |
commit | b07dc2349d3e60bef40a9974f8b20e8158d989e8 (patch) | |
tree | 6ec2d24acc3a3764c77002d0e9629f2d26b2bc32 /main/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch | |
parent | c899e9941b773827ef155a4b42c6b9a950841f80 (diff) | |
download | aports-b07dc2349d3e60bef40a9974f8b20e8158d989e8.tar.bz2 aports-b07dc2349d3e60bef40a9974f8b20e8158d989e8.tar.xz |
main/kbd: fix build with musl and upgrade to 2.0.2
ref #2977
Diffstat (limited to 'main/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch')
-rw-r--r-- | main/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch b/main/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch new file mode 100644 index 0000000000..1b01f3608e --- /dev/null +++ b/main/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch @@ -0,0 +1,28 @@ +From 3c5c7acc7ef874b919b26583d3892e21b907833f Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Wed, 20 Aug 2014 09:00:03 +0200 +Subject: [PATCH 3/4] Only inluclude kernel headers with glibc + +This fixes compile errors with musl libc + +Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> +--- + src/resizecons.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/resizecons.c b/src/resizecons.c +index 5f84845..691dfcc 100644 +--- a/src/resizecons.c ++++ b/src/resizecons.c +@@ -80,7 +80,7 @@ + #include <sys/ioctl.h> + #if (__GNU_LIBRARY__ >= 6) + #include <sys/perm.h> +-#else ++#elif defined(__GLIBC__) + #include <linux/types.h> + #include <linux/termios.h> + #endif +-- +2.1.0 + |