changeset 5432:0d154bce2341

osutil: Solaris build fix
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 09 Oct 2007 08:39:37 -0700
parents a7c832abd29c
children 4d34f8b12a9e be015f9b7405
files mercurial/osutil.c
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;