From 54446d730cfb17c5f7bcf57f139458678f5066cc Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 27 Jul 2013 17:11:34 -0400 Subject: 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. --- include/sys/dir.h | 2 ++ include/sys/errno.h | 2 ++ include/sys/fcntl.h | 2 ++ include/sys/poll.h | 1 + include/sys/signal.h | 2 ++ include/sys/termios.h | 2 ++ 6 files changed, 11 insertions(+) create mode 100644 include/sys/dir.h create mode 100644 include/sys/errno.h create mode 100644 include/sys/fcntl.h create mode 100644 include/sys/signal.h create mode 100644 include/sys/termios.h (limited to 'include') diff --git a/include/sys/dir.h b/include/sys/dir.h new file mode 100644 index 00000000..9ba1c79e --- /dev/null +++ b/include/sys/dir.h @@ -0,0 +1,2 @@ +#include +#define direct dirent diff --git a/include/sys/errno.h b/include/sys/errno.h new file mode 100644 index 00000000..35a3e5a2 --- /dev/null +++ b/include/sys/errno.h @@ -0,0 +1,2 @@ +#warning redirecting incorrect #include to +#include diff --git a/include/sys/fcntl.h b/include/sys/fcntl.h new file mode 100644 index 00000000..3dd928ef --- /dev/null +++ b/include/sys/fcntl.h @@ -0,0 +1,2 @@ +#warning redirecting incorrect #include to +#include diff --git a/include/sys/poll.h b/include/sys/poll.h index 779ec774..99170401 100644 --- a/include/sys/poll.h +++ b/include/sys/poll.h @@ -1 +1,2 @@ +#warning redirecting incorrect #include to #include diff --git a/include/sys/signal.h b/include/sys/signal.h new file mode 100644 index 00000000..45bdcc64 --- /dev/null +++ b/include/sys/signal.h @@ -0,0 +1,2 @@ +#warning redirecting incorrect #include to +#include diff --git a/include/sys/termios.h b/include/sys/termios.h new file mode 100644 index 00000000..f5f751f0 --- /dev/null +++ b/include/sys/termios.h @@ -0,0 +1,2 @@ +#warning redirecting incorrect #include to +#include -- cgit v1.2.1