提交 54446d73 编写于 作者: R Rich Felker

add wrapper headers, with warnings, for various incorrect names under sys

also add a warning to the existing sys/poll.h. the warning is absent
from sys/dir.h because it is actually providing a slightly different
API to the program, and thus just replacing the #include directive is
not a valid fix to programs using this one.
上级 bf7b7282
#include <dirent.h>
#define direct dirent
#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
#include <errno.h>
#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
#include <fcntl.h>
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
#include <poll.h>
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
#include <signal.h>
#warning redirecting incorrect #include <sys/termios.h> to <termios.h>
#include <termios.h>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册