aboutsummaryrefslogtreecommitdiffstats
path: root/main/kbd/0003-Only-inluclude-kernel-headers-with-glibc.patch
blob: 1b01f3608e8ab11cb5701bd28c806796b47acf3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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