# HG changeset patch # User Bryan O'Sullivan # Date 1191944377 25200 # Node ID 0d154bce23419132d246b2b20b234216a47f48d8 # Parent a7c832abd29c51cfa1278fea27de57dfbb9d72d4 osutil: Solaris build fix diff -r a7c832abd29c -r 0d154bce2341 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 #include +#if defined(__sun) +#define dirfd(dir) ((dir)->dd_fd) +#endif + struct listdir_stat { PyObject_HEAD struct stat st;