This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] fixincludes: Add missing hunk to tests/base/ioLib.h
- From: Rasmus Villemoes <rv at rasmusvillemoes dot dk>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Tom de Vries <tdevries at suse dot de>, Martin Liška <mliska at suse dot cz>, Jeff Law <law at redhat dot com>, Bruce Korb <bkorb at gnu dot org>, Rasmus Villemoes <rv at rasmusvillemoes dot dk>
- Date: Tue, 26 Jun 2018 13:59:44 +0200
- Subject: [PATCH] fixincludes: Add missing hunk to tests/base/ioLib.h
When adding the vxworks_iolib_include_unistd hack I failed to add the
appropriate hunk to the tests/base/ioLib.h file, causing "make
check-fixincludes" to fail.
OK for trunk?
2018-06-26 Rasmus Villemoes <rv@rasmusvillemoes.dk>
fixincludes/
* tests/base/ioLib.h [VXWORKS_IOLIB_INCLUDE_UNISTD_CHECK]: Add
missing hunk.
---
fixincludes/tests/base/ioLib.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fixincludes/tests/base/ioLib.h b/fixincludes/tests/base/ioLib.h
index d570c895d57..a3ff6c1eb86 100644
--- a/fixincludes/tests/base/ioLib.h
+++ b/fixincludes/tests/base/ioLib.h
@@ -17,3 +17,8 @@ extern int ioctl ( int asdf1234, int jkl , int qwerty ) ;
#if defined( VXWORKS_WRITE_CONST_CHECK )
extern int write (int, const char*, size_t);
#endif /* VXWORKS_WRITE_CONST_CHECK */
+
+
+#if defined( VXWORKS_IOLIB_INCLUDE_UNISTD_CHECK )
+#include <unistd.h>
+#endif /* VXWORKS_IOLIB_INCLUDE_UNISTD_CHECK */
--
2.16.4