author | Brendan Cully <brendan@kublai.com> |
Sat, 18 Oct 2008 11:43:45 -0700 | |
changeset 7136 | d834ed27199f |
parent 7135 | 06ca03380190 |
child 7137 | 0c63b87d9bce |
child 7142 | 88f1b8081f1c |
--- 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");