diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2018-05-25 18:51:58 +0200 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-05-25 10:51:58 -0600 |
commit | 1afe3e77e8dbc2ad680bab46f7637975f8c3cdfb (patch) | |
tree | ae6d4944bcc1f354898ad341c698a139db134117 | |
parent | f22ed1ed2ae240124d5a5a0b8fa2cb1fc7d62e00 (diff) | |
download | gcc-1afe3e77e8dbc2ad680bab46f7637975f8c3cdfb.zip gcc-1afe3e77e8dbc2ad680bab46f7637975f8c3cdfb.tar.gz gcc-1afe3e77e8dbc2ad680bab46f7637975f8c3cdfb.tar.bz2 |
* inclhack.def (vxworks_iolib_include_unistd): New fix.
From-SVN: r260763
-rw-r--r-- | fixincludes/ChangeLog | 4 | ||||
-rw-r--r-- | fixincludes/inclhack.def | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog index fc6e80d..3d88767 100644 --- a/fixincludes/ChangeLog +++ b/fixincludes/ChangeLog @@ -1,3 +1,7 @@ +2018-05-25 Rasmus Villemoes <rasmus.villemoes@prevas.dk> + + * inclhack.def (vxworks_iolib_include_unistd): New fix. + 2018-04-18 David Malcolm <dmalcolm@redhat.com> PR jit/85384 diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 77444db..5ec5a50 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -5011,6 +5011,22 @@ fix = { }; /* + * This hack ensures the include_next in the fixed unistd.h actually + * finds the system's unistd.h and not the fixed unistd.h again. + */ +fix = { + hackname = vxworks_iolib_include_unistd; + files = ioLib.h; + mach = "*-*-vxworks*"; + select = "#include \"unistd.h\""; + + c_fix = format; + c_fix_arg = "#include <unistd.h>"; + + test_text = "#include \"unistd.h\""; +}; + +/* * There are several name conflicts with C++ reserved words in X11 header * files. These are fixed in some versions, so don't do the fixes if * we find __cplusplus in the file. These were found on the RS/6000. |