Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-08 21:57:35 +0400
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-08 21:57:35 +0400
commitaa5a92d121d4fcc56d9661ce1c76534b410784c7 (patch)
treeef6455d89b4bf7586546c468367cfb1a0f4bac8f /src/posix.h
parent519757279eb25fe4075f65b86da5ce52d352b454 (diff)
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