Blame patches/musl/musl-0004-move-inclusion-of-linux-headers-for-kd.h-soundcard.h.patch

Lucio Andrés Illanes Albornoz b6e646
From f2c6dbe2442027ed8fe0fa869918e41f495534d8 Mon Sep 17 00:00:00 2001
Lucio Andrés Illanes Albornoz b6e646
From: midipix <writeonce@midipix.org>
Lucio Andrés Illanes Albornoz b6e646
Date: Sat, 14 Jul 2018 22:51:22 -0400
Lucio Andrés Illanes Albornoz b6e646
Subject: [PATCH 2/2] move inclusion of linux headers for kd.h, soundcard.h,
Lucio Andrés Illanes Albornoz b6e646
 vt.h to bits
Lucio Andrés Illanes Albornoz b6e646
MIME-Version: 1.0
Lucio Andrés Illanes Albornoz b6e646
Content-Type: text/plain; charset=UTF-8
Lucio Andrés Illanes Albornoz b6e646
Content-Transfer-Encoding: 8bit
Lucio Andrés Illanes Albornoz b6e646
Lucio Andrés Illanes Albornoz b6e646
maintainer's note: while musl does not use the linux kernel headers,
Lucio Andrés Illanes Albornoz b6e646
it does provide these three sys/* headers which do nothing but include
Lucio Andrés Illanes Albornoz b6e646
the corresponding linux/* headers, since the sys/* versions are the
Lucio Andrés Illanes Albornoz b6e646
ones documented for application use (and they arguably provide
Lucio Andrés Illanes Albornoz b6e646
interfaces that are not linux-specific but common to other unices).
Lucio Andrés Illanes Albornoz b6e646
these headers should probably not be provided by libc (rather by a
Lucio Andrés Illanes Albornoz b6e646
separate package), but as long as they are, use the bits header
Lucio Andrés Illanes Albornoz b6e646
framework as an aid to out-of-tree ports of musl for non-linux systems
Lucio Andrés Illanes Albornoz b6e646
that want to implement them in some other way.
Lucio Andrés Illanes Albornoz b6e646
Lucio Andrés Illanes Albornoz b6e646
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
Lucio Andrés Illanes Albornoz b6e646
---
Lucio Andrés Illanes Albornoz b6e646
 arch/generic/bits/kd.h        | 1 +
Lucio Andrés Illanes Albornoz b6e646
 arch/generic/bits/soundcard.h | 1 +
Lucio Andrés Illanes Albornoz b6e646
 arch/generic/bits/vt.h        | 1 +
Lucio Andrés Illanes Albornoz b6e646
 include/sys/kd.h              | 2 +-
Lucio Andrés Illanes Albornoz b6e646
 include/sys/soundcard.h       | 2 +-
Lucio Andrés Illanes Albornoz b6e646
 include/sys/vt.h              | 2 +-
Lucio Andrés Illanes Albornoz b6e646
 6 files changed, 6 insertions(+), 3 deletions(-)
Lucio Andrés Illanes Albornoz b6e646
 create mode 100644 arch/generic/bits/kd.h
Lucio Andrés Illanes Albornoz b6e646
 create mode 100644 arch/generic/bits/soundcard.h
Lucio Andrés Illanes Albornoz b6e646
 create mode 100644 arch/generic/bits/vt.h
Lucio Andrés Illanes Albornoz b6e646
Lucio Andrés Illanes Albornoz b6e646
diff --git a/arch/generic/bits/kd.h b/arch/generic/bits/kd.h
Lucio Andrés Illanes Albornoz b6e646
new file mode 100644
Lucio Andrés Illanes Albornoz b6e646
index 00000000..33b873f4
Lucio Andrés Illanes Albornoz b6e646
--- /dev/null
Lucio Andrés Illanes Albornoz b6e646
+++ b/arch/generic/bits/kd.h
Lucio Andrés Illanes Albornoz b6e646
@@ -0,0 +1 @@
Lucio Andrés Illanes Albornoz b6e646
+#include <linux/kd.h>
Lucio Andrés Illanes Albornoz b6e646
diff --git a/arch/generic/bits/soundcard.h b/arch/generic/bits/soundcard.h
Lucio Andrés Illanes Albornoz b6e646
new file mode 100644
Lucio Andrés Illanes Albornoz b6e646
index 00000000..fade986f
Lucio Andrés Illanes Albornoz b6e646
--- /dev/null
Lucio Andrés Illanes Albornoz b6e646
+++ b/arch/generic/bits/soundcard.h
Lucio Andrés Illanes Albornoz b6e646
@@ -0,0 +1 @@
Lucio Andrés Illanes Albornoz b6e646
+#include <linux/soundcard.h>
Lucio Andrés Illanes Albornoz b6e646
diff --git a/arch/generic/bits/vt.h b/arch/generic/bits/vt.h
Lucio Andrés Illanes Albornoz b6e646
new file mode 100644
Lucio Andrés Illanes Albornoz b6e646
index 00000000..834abfbc
Lucio Andrés Illanes Albornoz b6e646
--- /dev/null
Lucio Andrés Illanes Albornoz b6e646
+++ b/arch/generic/bits/vt.h
Lucio Andrés Illanes Albornoz b6e646
@@ -0,0 +1 @@
Lucio Andrés Illanes Albornoz b6e646
+#include <linux/vt.h>
Lucio Andrés Illanes Albornoz b6e646
diff --git a/include/sys/kd.h b/include/sys/kd.h
Lucio Andrés Illanes Albornoz b6e646
index 33b873f4..42122b9c 100644
Lucio Andrés Illanes Albornoz b6e646
--- a/include/sys/kd.h
Lucio Andrés Illanes Albornoz b6e646
+++ b/include/sys/kd.h
Lucio Andrés Illanes Albornoz b6e646
@@ -1 +1 @@
Lucio Andrés Illanes Albornoz b6e646
-#include <linux/kd.h>
Lucio Andrés Illanes Albornoz b6e646
+#include <bits/kd.h>
Lucio Andrés Illanes Albornoz b6e646
diff --git a/include/sys/soundcard.h b/include/sys/soundcard.h
Lucio Andrés Illanes Albornoz b6e646
index fade986f..5ca77646 100644
Lucio Andrés Illanes Albornoz b6e646
--- a/include/sys/soundcard.h
Lucio Andrés Illanes Albornoz b6e646
+++ b/include/sys/soundcard.h
Lucio Andrés Illanes Albornoz b6e646
@@ -1 +1 @@
Lucio Andrés Illanes Albornoz b6e646
-#include <linux/soundcard.h>
Lucio Andrés Illanes Albornoz b6e646
+#include <bits/soundcard.h>
Lucio Andrés Illanes Albornoz b6e646
diff --git a/include/sys/vt.h b/include/sys/vt.h
Lucio Andrés Illanes Albornoz b6e646
index 834abfbc..5000de49 100644
Lucio Andrés Illanes Albornoz b6e646
--- a/include/sys/vt.h
Lucio Andrés Illanes Albornoz b6e646
+++ b/include/sys/vt.h
Lucio Andrés Illanes Albornoz b6e646
@@ -1 +1 @@
Lucio Andrés Illanes Albornoz b6e646
-#include <linux/vt.h>
Lucio Andrés Illanes Albornoz b6e646
+#include <bits/vt.h>
Lucio Andrés Illanes Albornoz b6e646
-- 
Lucio Andrés Illanes Albornoz b6e646
2.17.0
Lucio Andrés Illanes Albornoz b6e646