Merge with crew
authorMatt Mackall <mpm@selenic.com>
Tue, 09 Oct 2007 17:44:44 -0500
changeset 5442 be015f9b7405
parent 5441 f9c2917a9f7a (current diff)
parent 5432 0d154bce2341 (diff)
child 5443 58496354773f
Merge with crew
--- a/mercurial/osutil.c
+++ b/mercurial/osutil.c
@@ -17,6 +17,10 @@
 #include <sys/types.h>
 #include <unistd.h>
 
+#if defined(__sun)
+#define dirfd(dir) ((dir)->dd_fd)
+#endif
+
 struct listdir_stat {
 	PyObject_HEAD
 	struct stat st;