Commits

Giorgos Keramidas committed 4cab2d1

Avoid calling fstatat() on Sun Solaris machines

Comments (0)

Files changed (1)

mercurial/osutil.c

 
 		kind = entkind(ent);
 		if (kind == -1 || keepstat) {
-#ifdef AT_SYMLINK_NOFOLLOW
+#if defined(AT_SYMLINK_NOFOLLOW) && !defined(sun)
 			err = fstatat(dfd, ent->d_name, &st,
 				      AT_SYMLINK_NOFOLLOW);
 #else