diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-14 18:57:24 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-14 18:57:24 +0100 |
commit | a8df98c6fb07b8ddff18a01d7f2f607d9493dd7c (patch) | |
tree | 508aa2bdd6278e967ce4122c37a6a7d9a77bdad5 /src/posix.h | |
parent | a21bb1aa33e9887c06852db62526895df6091736 (diff) | |
download | libgit2-a8df98c6fb07b8ddff18a01d7f2f607d9493dd7c.tar.gz |
Updates from comments on OS4 compatibility pull request http://github.com/libgit2/libgit2/pull/766
Diffstat (limited to 'src/posix.h')
-rw-r--r-- | src/posix.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/posix.h b/src/posix.h index 6b6c53db1..cc35c52e3 100644 --- a/src/posix.h +++ b/src/posix.h @@ -86,7 +86,12 @@ extern int p_gettimeofday(struct timeval *tv, struct timezone *tz); #ifndef NO_READDIR_R #define p_readdir_r(d,e,r) readdir_r(d,e,&r) #else -#define p_readdir_r(d,e,r) r = readdir(d) +GIT_INLINE(int) p_readdir_r(DIR *dirp, struct dirent *entry, struct direct **result) +{ + GIT_UNUSED(entry); + *result = readdir(dirp); + return 0; +} #endif #endif |