* lib/savewd.c: Don’t include fcntl-safer.
[GNULIB_FCNTL_SAFER]: Include fcntl--.h.
(savewd_save): Use open, not open_safer.
* modules/savewd (Depends-on): Remove fcntl-safer.
2024-11-06 Paul Eggert <eggert@cs.ucla.edu>
+ savewd: don’t depend on fcntl-safer
+ * lib/savewd.c: Don’t include fcntl-safer.
+ [GNULIB_FCNTL_SAFER]: Include fcntl--.h.
+ (savewd_save): Use open, not open_safer.
+ * modules/savewd (Depends-on): Remove fcntl-safer.
+
savedir: don’t depend on dirent-safer
* lib/savedir.c: Include dirent.h, not dirent--.h.
* modules/savedir (Depends-on): Depend on dirent, not dirent-safer.
#include "assure.h"
#include "attribute.h"
-#include "fcntl-safer.h"
#include "filename.h"
+#if GNULIB_FCNTL_SAFER
+# include "fcntl--.h"
+#endif
+
#if defined _WIN32 && !defined __CYGWIN__
# define fork() (assure (false), -1)
#endif
case INITIAL_STATE:
/* Save the working directory, or prepare to fall back if possible. */
{
- int fd = open_safer (".", O_SEARCH);
+ int fd = open (".", O_SEARCH);
if (0 <= fd)
{
wd->state = FD_STATE;
errno
extern-inline
fchdir
-fcntl-safer
fcntl-h
filename
raise