summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-08 18:57:35 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-08 18:57:35 +0100
commitaa5a92d121d4fcc56d9661ce1c76534b410784c7 (patch)
treeef6455d89b4bf7586546c468367cfb1a0f4bac8f /src/posix.h
parent519757279eb25fe4075f65b86da5ce52d352b454 (diff)
downloadlibgit2-aa5a92d121d4fcc56d9661ce1c76534b410784c7.tar.gz
OS4 compatibility
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/posix.h b/src/posix.h
index d020d94ac..8e8b394c8 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -74,6 +74,10 @@ typedef SOCKET GIT_SOCKET;
# include "unix/posix.h"
#endif
-#define p_readdir_r(d,e,r) readdir_r(d,e,r)
+#ifndef __amigaos4__
+#define p_readdir_r(d,e,r) readdir_r(d,e,&r)
+#else
+#define p_readdir_r(d,e,r) r = readdir(d)
+#endif
#endif