* gcc.c-torture/execute/builtins/lib/chk.c: Only include sys/types.h for unix to...
authorAndy Hutchinson <hutchinsonandy@aim.com>
Mon, 9 Jun 2008 22:56:35 +0000 (22:56 +0000)
committerAndy Hutchinson <hutchinsonandy@gcc.gnu.org>
Mon, 9 Jun 2008 22:56:35 +0000 (22:56 +0000)
From-SVN: r136605

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtins/lib/chk.c

index 12fea9bb0a00ac0aca5ea1ecd82e0f9603f750bc..09740f5b4f79c384ef7e650d1ed5d6b240369fb3 100644 (file)
@@ -1,3 +1,8 @@
+2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
+
+       * gcc.c-torture/execute/builtins/lib/chk.c: Only include sys/types.h
+       for unix to check for uClibc.
+
 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
 
        PR testsuite/36285
index 67aa302524d8780fed71b7b08f1344e521062c37..e5197902b240cac47b1a0499c2a29a7957c0643c 100644 (file)
@@ -1,5 +1,7 @@
 #include <stdarg.h>
+#ifdef __unix__
 #include <sys/types.h>
+#endif
 
 extern void abort (void);