From: Rasmus Villemoes Date: Fri, 25 May 2018 16:51:58 +0000 (+0200) Subject: * inclhack.def (vxworks_iolib_include_unistd): New fix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1afe3e77e8dbc2ad680bab46f7637975f8c3cdfb;p=gcc.git * inclhack.def (vxworks_iolib_include_unistd): New fix. From-SVN: r260763 --- diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog index fc6e80d6123..3d8876721fc 100644 --- a/fixincludes/ChangeLog +++ b/fixincludes/ChangeLog @@ -1,3 +1,7 @@ +2018-05-25 Rasmus Villemoes + + * inclhack.def (vxworks_iolib_include_unistd): New fix. + 2018-04-18 David Malcolm PR jit/85384 diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index 77444db2333..5ec5a50a2e2 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -5010,6 +5010,22 @@ fix = { test_text = "extern int write ( int , char * , size_t ) ;"; }; +/* + * 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 "; + + 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