ref: 193daffafb2ca564a47e52489cb082d77fa78872
parent: 5debddf8aff9cc647cd9eeb89c06a550fbf816e7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Aug 27 23:41:25 EDT 2016
mercurial: use new d_stat from dirent structure in osutil.listdir
--- a/sys/src/cmd/python/Extra/mercurial/osutil.c
+++ b/sys/src/cmd/python/Extra/mercurial/osutil.c
@@ -318,6 +318,9 @@
kind = entkind(ent);
if (kind == -1 || keepstat) {
+#ifdef PLAN9APE
+ st = ent->d_stat;
+#else
#ifdef AT_SYMLINK_NOFOLLOW
err = fstatat(dfd, ent->d_name, &st,
AT_SYMLINK_NOFOLLOW);
@@ -335,6 +338,7 @@
fullpath);
goto error;
}
+#endif
kind = st.st_mode & S_IFMT;
}