summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-14 19:09:42 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-14 19:09:42 +0100
commitd043013fea859f5eb6f677cad28319d093f1dbda (patch)
treeb4dfdb9647e090d86eccd93a16134a71aa5ed368 /src/posix.h
parenta8df98c6fb07b8ddff18a01d7f2f607d9493dd7c (diff)
downloadlibgit2-d043013fea859f5eb6f677cad28319d093f1dbda.tar.gz
More changes resulting from pull request
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h5
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);