* lib/error.c (flush_stdout): Also optimize if GNULIB_XSTDOPEN.
2024-11-06 Paul Eggert <eggert@cs.ucla.edu>
+ error: tune a bit for xstdopen
+ * lib/error.c (flush_stdout): Also optimize if GNULIB_XSTDOPEN.
+
unistd-safer, xstdopen: indicate presence
* modules/unistd-safer, modules/xstdopen (configure.ac):
Add module indicator.
#if !_LIBC
int stdout_fd;
-# if GNULIB_FREOPEN_SAFER
- /* Use of gnulib's freopen-safer module normally ensures that
+# if GNULIB_FREOPEN_SAFER || GNULIB_XSTDOPEN
+ /* Gnulib's freopen-safer and/or xstdopen modules normally ensure that
fileno (stdout) == 1
whenever stdout is open. */
stdout_fd = STDOUT_FILENO;