* lib/opendirat.c: Include fcntl.h.
[!GNULIB_OPENAT_SAFER]: Don’t include fcntl--.h.
* modules/opendirat (Depends-on): Depend on openat, not openat-safer.
2024-11-06 Paul Eggert <eggert@cs.ucla.edu>
+ opendirat: don’t depend on openat-safer
+ * lib/opendirat.c: Include fcntl.h.
+ [!GNULIB_OPENAT_SAFER]: Don’t include fcntl--.h.
+ * modules/opendirat (Depends-on): Depend on openat, not openat-safer.
+
getusershell: don’t depend on fopen-safer
* lib/getusershell.c: Include stdio.h.
[!GNULIB_FOPEN_SAFER]: Don’t include stdio--.h.
#include <opendirat.h>
#include <errno.h>
-#include <fcntl--.h>
+#include <fcntl.h>
#include <unistd.h>
+#ifdef GNULIB_OPENAT_SAFER
+# include "fcntl--.h"
+#endif
+
/* Relative to DIR_FD, open the directory DIR, passing EXTRA_FLAGS to
the underlying openat call. On success, store into *PNEW_FD the
underlying file descriptor of the newly opened directory and return
dirent
fcntl-h
fdopendir
-openat-safer
+openat
configure.ac: