chk.c: Include <sys/types.h>.

gcc/testsuite/
	* gcc.c-torture/execute/builtins/lib/chk.c: Include <sys/types.h>.
	(vsnprintf): Don't define for uClibc targets.

From-SVN: r121747
This commit is contained in:
Richard Sandiford 2007-02-09 13:50:56 +00:00 committed by Richard Sandiford
parent a6fb11e20d
commit a6a05a5ec2
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-02-09 Richard Sandiford <richard@codesourcery.com>
* gcc.c-torture/execute/builtins/lib/chk.c: Include <sys/types.h>.
(vsnprintf): Don't define for uClibc targets.
2007-02-09 Richard Sandiford <richard@codesourcery.com>
* gcc.c-torture/execute/builtins/memops-asm-lib.c: Do the copy or

View file

@ -1,4 +1,5 @@
#include <stdarg.h>
#include <sys/types.h>
extern void abort (void);
@ -448,6 +449,8 @@ snprintf (char *str, __SIZE_TYPE__ len, const char *fmt, ...)
return ret;
}
/* uClibc's vsprintf calls vsnprintf. */
#ifndef __UCLIBC__
int
vsnprintf (char *str, __SIZE_TYPE__ len, const char *fmt, va_list ap)
{
@ -470,3 +473,4 @@ vsnprintf (char *str, __SIZE_TYPE__ len, const char *fmt, va_list ap)
}
return ret;
}
#endif