xfuncs.c: dietlibc actually HAS fdprintf!

platform.h: define strchrnul for dietlibc
ash: stop using few non-standard functions
This commit is contained in:
Denis Vlasenko
2006-12-18 22:32:45 +00:00
parent c8e6e35ba4
commit 7cfecc4b36
3 changed files with 24 additions and 13 deletions

View File

@ -411,8 +411,8 @@ char *xasprintf(const char *format, ...)
return string_ptr;
}
#ifdef __dietlibc__
int dprintf(int fd, const char *format, ...)
#if 0 /* If we will ever meet a libc which hasn't [f]dprintf... */
int fdprintf(int fd, const char *format, ...)
{
va_list p;
int r;