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.
This commit is contained in:
parent
bf7b7282f5
commit
54446d730c
6 changed files with 11 additions and 0 deletions
2
include/sys/dir.h
Normal file
2
include/sys/dir.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#include <dirent.h>
|
||||
#define direct dirent
|
||||
2
include/sys/errno.h
Normal file
2
include/sys/errno.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
|
||||
#include <errno.h>
|
||||
2
include/sys/fcntl.h
Normal file
2
include/sys/fcntl.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
|
||||
#include <fcntl.h>
|
||||
|
|
@ -1 +1,2 @@
|
|||
#warning redirecting incorrect #include <sys/poll.h> to <poll.h>
|
||||
#include <poll.h>
|
||||
|
|
|
|||
2
include/sys/signal.h
Normal file
2
include/sys/signal.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
|
||||
#include <signal.h>
|
||||
2
include/sys/termios.h
Normal file
2
include/sys/termios.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#warning redirecting incorrect #include <sys/termios.h> to <termios.h>
|
||||
#include <termios.h>
|
||||
Loading…
Add table
Add a link
Reference in a new issue