Merge with crew
authorMatt Mackall <mpm@selenic.com>
Tue, 09 Oct 2007 17:44:44 -0500
changeset 5436 be015f9b7405
parent 5434 f9c2917a9f7a (current diff)
parent 5435 0d154bce2341 (diff)
child 5443 58496354773f
Merge with crew
--- a/mercurial/osutil.c	Tue Oct 09 17:25:24 2007 -0500
+++ b/mercurial/osutil.c	Tue Oct 09 17:44:44 2007 -0500
@@ -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;