summaryrefslogtreecommitdiffhomepage
path: root/patches/musl/musl-0004-move-inclusion-of-linux-headers-for-kd.h-soundcard.h.patch
blob: 4a0c2a0280b3dc114639771ae9d396eca0632dfa (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
From f2c6dbe2442027ed8fe0fa869918e41f495534d8 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sat, 14 Jul 2018 22:51:22 -0400
Subject: [PATCH 2/2] move inclusion of linux headers for kd.h, soundcard.h,
 vt.h to bits
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

maintainer's note: while musl does not use the linux kernel headers,
it does provide these three sys/* headers which do nothing but include
the corresponding linux/* headers, since the sys/* versions are the
ones documented for application use (and they arguably provide
interfaces that are not linux-specific but common to other unices).
these headers should probably not be provided by libc (rather by a
separate package), but as long as they are, use the bits header
framework as an aid to out-of-tree ports of musl for non-linux systems
that want to implement them in some other way.

Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
---
 arch/generic/bits/kd.h        | 1 +
 arch/generic/bits/soundcard.h | 1 +
 arch/generic/bits/vt.h        | 1 +
 include/sys/kd.h              | 2 +-
 include/sys/soundcard.h       | 2 +-
 include/sys/vt.h              | 2 +-
 6 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 arch/generic/bits/kd.h
 create mode 100644 arch/generic/bits/soundcard.h
 create mode 100644 arch/generic/bits/vt.h

diff --git a/arch/generic/bits/kd.h b/arch/generic/bits/kd.h
new file mode 100644
index 00000000..33b873f4
--- /dev/null
+++ b/arch/generic/bits/kd.h
@@ -0,0 +1 @@
+#include <linux/kd.h>
diff --git a/arch/generic/bits/soundcard.h b/arch/generic/bits/soundcard.h
new file mode 100644
index 00000000..fade986f
--- /dev/null
+++ b/arch/generic/bits/soundcard.h
@@ -0,0 +1 @@
+#include <linux/soundcard.h>
diff --git a/arch/generic/bits/vt.h b/arch/generic/bits/vt.h
new file mode 100644
index 00000000..834abfbc
--- /dev/null
+++ b/arch/generic/bits/vt.h
@@ -0,0 +1 @@
+#include <linux/vt.h>
diff --git a/include/sys/kd.h b/include/sys/kd.h
index 33b873f4..42122b9c 100644
--- a/include/sys/kd.h
+++ b/include/sys/kd.h
@@ -1 +1 @@
-#include <linux/kd.h>
+#include <bits/kd.h>
diff --git a/include/sys/soundcard.h b/include/sys/soundcard.h
index fade986f..5ca77646 100644
--- a/include/sys/soundcard.h
+++ b/include/sys/soundcard.h
@@ -1 +1 @@
-#include <linux/soundcard.h>
+#include <bits/soundcard.h>
diff --git a/include/sys/vt.h b/include/sys/vt.h
index 834abfbc..5000de49 100644
--- a/include/sys/vt.h
+++ b/include/sys/vt.h
@@ -1 +1 @@
-#include <linux/vt.h>
+#include <bits/vt.h>
-- 
2.17.0