* lib/getusershell.c: Include stdio.h.
[!GNULIB_FOPEN_SAFER]: Don’t include stdio--.h.
* modules/getusershell (Depends-on): Depend on fopen, not fopen-safer.
2024-11-06 Paul Eggert <eggert@cs.ucla.edu>
+ getusershell: don’t depend on fopen-safer
+ * lib/getusershell.c: Include stdio.h.
+ [!GNULIB_FOPEN_SAFER]: Don’t include stdio--.h.
+ * modules/getusershell (Depends-on): Depend on fopen, not fopen-safer.
+
savewd: don’t depend on fcntl-safer
* lib/savewd.c: Don’t include fcntl-safer.
[GNULIB_FCNTL_SAFER]: Include fcntl--.h.
# endif
#endif
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include "stdio--.h"
#include "filename.h"
#include "xalloc.h"
+#if GNULIB_FOPEN_SAFER
+# include "stdio--.h"
+#endif
+
#if ! defined ADDITIONAL_DEFAULT_SHELLS && defined __MSDOS__
# define ADDITIONAL_DEFAULT_SHELLS \
"c:/dos/command.com", "c:/windows/command.com", "c:/command.com",
Depends-on:
unistd
extensions
-fopen-safer [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
+fopen [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
getline [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
filename [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
xalloc [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]