changeset 5442:be015f9b7405

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Tue, 09 Oct 2007 17:44:44 -0500
parents f9c2917a9f7a (current diff) 0d154bce2341 (diff)
children 58496354773f
files
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;