Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/osutil.c @ 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 | 7372b6bbc5e6 |
comparison
equal
deleted
inserted
replaced
5431:a7c832abd29c | 5432:0d154bce2341 |
---|---|
14 #include <fcntl.h> | 14 #include <fcntl.h> |
15 #include <string.h> | 15 #include <string.h> |
16 #include <sys/stat.h> | 16 #include <sys/stat.h> |
17 #include <sys/types.h> | 17 #include <sys/types.h> |
18 #include <unistd.h> | 18 #include <unistd.h> |
19 | |
20 #if defined(__sun) | |
21 #define dirfd(dir) ((dir)->dd_fd) | |
22 #endif | |
19 | 23 |
20 struct listdir_stat { | 24 struct listdir_stat { |
21 PyObject_HEAD | 25 PyObject_HEAD |
22 struct stat st; | 26 struct stat st; |
23 }; | 27 }; |