X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsavedir.c;h=d930fb4af273af105ae895fccdb34f1f1ac65476;hb=9e1c363a5e3c4ccc9c44ac40e90c811af52c7a63;hp=12084ee90bc098554b8ee1e5d3a41d571fdfe250;hpb=0632e115747ff96e93330c88f536d7354a7ce507;p=gnulib.git diff --git a/lib/savedir.c b/lib/savedir.c index 12084ee90..d930fb4af 100644 --- a/lib/savedir.c +++ b/lib/savedir.c @@ -43,6 +43,11 @@ # define NAME_SIZE_DEFAULT 512 #endif +/* 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 + /* Return a freshly allocated string containing the file names in directory DIRP, separated by '\0' characters; the end is marked by two '\0' characters in a row.