path: root/include
diff options
authormidipix <>2018-07-14 22:49:06 -0400
committerRich Felker <>2018-07-20 01:06:03 -0400
commit2fab90a71acd3698954c08b9062db67188443dd7 (patch)
tree63424537a16527553ad78b1f8e4a1077148c89d6 /include
parent18fbc7e4fa254696eb024f56ee74704805925fad (diff)
remove inclusion guard hacks for sys/kd.h
maintainer's note: at some point, probably long before linux separated the uapi headers, it was the case, or at least I believed it was the case, that linux/types.h was unsafe to include from userspace. thus, the inclusion guard macro _LINUX_TYPES_H was defined in sys/kd.h to prevent linux/kd.h from including linux/types.h (which it spuriously includes but does not use). as far as I can tell, whatever problem this was meant to solve does not seem to have been present for a long time, and the hack was not done correctly anyway, so removing it is the right thing to do.
Diffstat (limited to 'include')
1 files changed, 0 insertions, 7 deletions
diff --git a/include/sys/kd.h b/include/sys/kd.h
index 793fd59f..33b873f4 100644
--- a/include/sys/kd.h
+++ b/include/sys/kd.h
@@ -1,8 +1 @@
-#ifndef _SYS_KD_H
-#define _SYS_KD_H
-#define _LINUX_TYPES_H
#include <linux/kd.h>
-#undef _LINUX_TYPES_H