osutil: Solaris build fix
authorBryan O'Sullivan <bos@serpentine.com>
Tue, 09 Oct 2007 08:39:37 -0700
changeset 5435 0d154bce2341
parent 5431 a7c832abd29c
child 5436 be015f9b7405
child 5437 4d34f8b12a9e
osutil: Solaris build fix
mercurial/osutil.c
--- a/mercurial/osutil.c	Mon Oct 08 22:45:48 2007 -0700
+++ b/mercurial/osutil.c	Tue Oct 09 08:39:37 2007 -0700
@@ -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;