summaryrefslogtreecommitdiff
path: root/lib/mountlist.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-02-24 20:44:32 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-02-24 20:45:51 -0800
commitecc5d3e148115ba09409139d4d6db810b5a270aa (patch)
tree6fb501d14092cd2fe8b770d84e3b652e9b98dfa7 /lib/mountlist.c
parent17f1e64f00011fb745019119e21b26e4aba65e4b (diff)
downloadgnulib-ecc5d3e148115ba09409139d4d6db810b5a270aa.tar.gz
glob, etc.: port to MSVC v18 on MS-Windows 8.1
* lib/dirent--.h (GNULIB_defined_opendir): * lib/dirent.in.h (GNULIB_defined_opendir) (GNULIB_defined_closedir): * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir): #undef only if Gnulib defined it.
Diffstat (limited to 'lib/mountlist.c')
-rw-r--r--lib/mountlist.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 6fed3575a4..dce4ce6f7a 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -157,8 +157,12 @@
/* 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
+#ifdef GNULIB_defined_opendir
+# undef opendir
+#endif
+#ifdef GNULIB_defined_closedir
+# undef closedir
+#endif
#define ME_DUMMY_0(Fs_name, Fs_type) \
(strcmp (Fs_type, "autofs") == 0 \