midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/musl/musl-0003-remove-inclusion-guard-hacks-for-sys-kd.h.patch

Lucio Andrés Illanes Albornoz b6e646
From 2fab90a71acd3698954c08b9062db67188443dd7 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:49:06 -0400
Lucio Andrés Illanes Albornoz b6e646
Subject: [PATCH 1/2] remove inclusion guard hacks for sys/kd.h
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: at some point, probably long before linux separated
Lucio Andrés Illanes Albornoz b6e646
the uapi headers, it was the case, or at least I believed it was the
Lucio Andrés Illanes Albornoz b6e646
case, that linux/types.h was unsafe to include from userspace. thus,
Lucio Andrés Illanes Albornoz b6e646
the inclusion guard macro _LINUX_TYPES_H was defined in sys/kd.h to
Lucio Andrés Illanes Albornoz b6e646
prevent linux/kd.h from including linux/types.h (which it spuriously
Lucio Andrés Illanes Albornoz b6e646
includes but does not use). as far as I can tell, whatever problem
Lucio Andrés Illanes Albornoz b6e646
this was meant to solve does not seem to have been present for a long
Lucio Andrés Illanes Albornoz b6e646
time, and the hack was not done correctly anyway, so removing it is
Lucio Andrés Illanes Albornoz b6e646
the right thing to do.
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
 include/sys/kd.h | 7 -------
Lucio Andrés Illanes Albornoz b6e646
 1 file changed, 7 deletions(-)
Lucio Andrés Illanes Albornoz b6e646
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 793fd59f..33b873f4 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,8 +1 @@
Lucio Andrés Illanes Albornoz b6e646
-#ifndef _SYS_KD_H
Lucio Andrés Illanes Albornoz b6e646
-#define _SYS_KD_H
Lucio Andrés Illanes Albornoz b6e646
-
Lucio Andrés Illanes Albornoz b6e646
-#define _LINUX_TYPES_H
Lucio Andrés Illanes Albornoz b6e646
 #include <linux/kd.h>
Lucio Andrés Illanes Albornoz b6e646
-#undef _LINUX_TYPES_H
Lucio Andrés Illanes Albornoz b6e646
-
Lucio Andrés Illanes Albornoz b6e646
-#endif
Lucio Andrés Illanes Albornoz b6e646
-- 
Lucio Andrés Illanes Albornoz b6e646
2.17.0
Lucio Andrés Illanes Albornoz b6e646