X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fbackupfile.c;h=adfc0e5411a14664d7150b60ccee4476db4bc14a;hb=5d0b385594bc914e6233988bfb6bc1b92a2184b5;hp=c24325d8fc9fa316abb022c162969d3a1ff7c261;hpb=efc5123c9d851509aea5dd30f47c91e7e5a5c8dd;p=gnulib.git diff --git a/lib/backupfile.c b/lib/backupfile.c index c24325d8f..adfc0e541 100644 --- a/lib/backupfile.c +++ b/lib/backupfile.c @@ -22,9 +22,7 @@ /* Written by Paul Eggert and David MacKenzie. Some algorithms adapted from GNU Emacs. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include "backupfile.h" @@ -84,6 +82,11 @@ of `digit' even when the host does not conform to POSIX. */ #define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9) +/* The results of opendir() in this file are not used with dirfd and fchdir, + therefore save some unnecessary work in fchdir.c. */ +#undef opendir +#undef closedir + /* The extension added to file names to produce a simple (as opposed to numbered) backup file name. */ char const *simple_backup_suffix = "~";