Commit a6a05a5e by Richard Sandiford Committed by Richard Sandiford

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
parent a6fb11e2
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
set before checking whether it was allowed.
* gcc.c-torture/execute/builtins/lib/memset.c: Do the memset
#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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment