mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
argp: Use fwrite_unlocked instead of __fxprintf when !_LIBC
__fxprintf is not available when argp is built outside libc. gnulib has the same logic already.
This commit is contained in:
@ -100,7 +100,11 @@ __argp_fmtstream_free (argp_fmtstream_t fs)
|
||||
__argp_fmtstream_update (fs);
|
||||
if (fs->p > fs->buf)
|
||||
{
|
||||
#ifdef _LIBC
|
||||
__fxprintf (fs->stream, "%.*s", (int) (fs->p - fs->buf), fs->buf);
|
||||
#else
|
||||
fwrite_unlocked (fs->buf, 1, fs->p - fs->buf, fs->stream);
|
||||
#endif
|
||||
}
|
||||
free (fs->buf);
|
||||
free (fs);
|
||||
|
Reference in New Issue
Block a user