summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
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