mercurial/osutil.c
changeset 7136 d834ed27199f
parent 7098 8a5c88c7e97b
child 7190 aecea6934fdd
--- a/mercurial/osutil.c	Sat Oct 18 20:39:08 2008 +0200
+++ b/mercurial/osutil.c	Sat Oct 18 11:43:45 2008 -0700
@@ -270,10 +270,13 @@
 {
 	PyObject *list, *elem, *stat, *ret = NULL;
 	char fullpath[PATH_MAX + 10];
-	int kind, dfd = -1, err;
+	int kind, err;
 	struct stat st;
 	struct dirent *ent;
 	DIR *dir;
+#ifdef AT_SYMLINK_NOFOLLOW
+	int dfd = -1;
+#endif
 
 	if (pathlen >= PATH_MAX) {
 		PyErr_SetString(PyExc_ValueError, "path too long");