diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-14 22:09:42 +0400 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-14 22:09:42 +0400 |
commit | d043013fea859f5eb6f677cad28319d093f1dbda (patch) | |
tree | b4dfdb9647e090d86eccd93a16134a71aa5ed368 /src/posix.h | |
parent | a8df98c6fb07b8ddff18a01d7f2f607d9493dd7c (diff) |
More changes resulting from pull request
Diffstat (limited to 'src/posix.h')
-rw-r--r-- | src/posix.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/posix.h b/src/posix.h index cc35c52e3..d423b7e07 100644 --- a/src/posix.h +++ b/src/posix.h @@ -84,9 +84,10 @@ extern int p_gettimeofday(struct timeval *tv, struct timezone *tz); #endif #ifndef NO_READDIR_R -#define p_readdir_r(d,e,r) readdir_r(d,e,&r) +#define p_readdir_r(d,e,r) readdir_r(d,e,r) #else -GIT_INLINE(int) p_readdir_r(DIR *dirp, struct dirent *entry, struct direct **result) +#include <dirent.h> +GIT_INLINE(int) p_readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) { GIT_UNUSED(entry); *result = readdir(dirp); |