add wrapper headers, with warnings, for various incorrect names under sys
authorRich Felker <dalias@aerifal.cx>
Sat, 27 Jul 2013 21:11:34 +0000 (17:11 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 27 Jul 2013 21:11:34 +0000 (17:11 -0400)
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 [new file with mode: 0644]
include/sys/errno.h [new file with mode: 0644]
include/sys/fcntl.h [new file with mode: 0644]
include/sys/poll.h
include/sys/signal.h [new file with mode: 0644]
include/sys/termios.h [new file with mode: 0644]

diff --git a/include/sys/dir.h b/include/sys/dir.h
new file mode 100644 (file)
index 0000000..9ba1c79
--- /dev/null
@@ -0,0 +1,2 @@
+#include <dirent.h>
+#define direct dirent
diff --git a/include/sys/errno.h b/include/sys/errno.h
new file mode 100644 (file)
index 0000000..35a3e5a
--- /dev/null
@@ -0,0 +1,2 @@
+#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
+#include <errno.h>
diff --git a/include/sys/fcntl.h b/include/sys/fcntl.h
new file mode 100644 (file)
index 0000000..3dd928e
--- /dev/null
@@ -0,0 +1,2 @@
+#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
+#include <fcntl.h>
index 779ec774fe6c79380749d8af8950bfb030654170..99170401d0ce3858d1c8b32662fe9bd5c7f9d8e0 100644 (file)
@@ -1 +1,2 @@
+#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
 #include <poll.h>
diff --git a/include/sys/signal.h b/include/sys/signal.h
new file mode 100644 (file)
index 0000000..45bdcc6
--- /dev/null
@@ -0,0 +1,2 @@
+#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
+#include <signal.h>
diff --git a/include/sys/termios.h b/include/sys/termios.h
new file mode 100644 (file)
index 0000000..f5f751f
--- /dev/null
@@ -0,0 +1,2 @@
+#warning redirecting incorrect #include <sys/termios.h> to <termios.h>
+#include <termios.h>