diff lib/glob.c @ 7863:cb2590895141

New module 'fchdir'.
author Bruno Haible <bruno@clisp.org>
date Sun, 14 Jan 2007 11:32:10 +0000 (2007-01-14)
parents 45c727466eb8
children a1d177cd9523
line wrap: on
line diff
--- a/lib/glob.c
+++ b/lib/glob.c
@@ -162,6 +162,11 @@
 
 #endif /* !defined _LIBC || !defined GLOB_ONLY_P */
 
+/* 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
+
 static int glob_in_dir (const char *pattern, const char *directory,
 			int flags, int (*errfunc) (const char *, int),
 			glob_t *pglob);