提交 2fab90a7 编写于 作者: M midipix 提交者: Rich Felker

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.
上级 18fbc7e4
#ifndef _SYS_KD_H
#define _SYS_KD_H
#define _LINUX_TYPES_H
#include <linux/kd.h>
#undef _LINUX_TYPES_H
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册