]> gcc.gnu.org Git - gcc.git/commitdiff
* inclhack.def (vxworks_iolib_include_unistd): New fix.
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 25 May 2018 16:51:58 +0000 (18:51 +0200)
committerJeff Law <law@gcc.gnu.org>
Fri, 25 May 2018 16:51:58 +0000 (10:51 -0600)
From-SVN: r260763

fixincludes/ChangeLog
fixincludes/inclhack.def

index fc6e80d61231166bdd037ad559ad71b8a7d14f10..3d8876721fc119a5835431848f32a15c7547c68a 100644 (file)
@@ -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
index 77444db233313b2eb530ada6410cb5d483473825..5ec5a50a2e27f25114995e23d4cb0d1eb4295818 100644 (file)
@@ -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 <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
This page took 0.067791 seconds and 5 git commands to generate.