__fxprintf is not available when argp is built outside libc.
gnulib has the same logic already.
+2016-01-07 Khem Raj <raj.khem@gmail.com>
+
+ * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
+ instead of __fxprintf when _LIBC is undefined.
+
2016-01-07 Marko Myllynen <myllynen@redhat.com>
* catgets/test-gencat.sh: Remove space after shebang.
__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);