diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-08 21:57:35 +0400 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-08 21:57:35 +0400 |
commit | aa5a92d121d4fcc56d9661ce1c76534b410784c7 (patch) | |
tree | ef6455d89b4bf7586546c468367cfb1a0f4bac8f /src/posix.h | |
parent | 519757279eb25fe4075f65b86da5ce52d352b454 (diff) |
OS4 compatibility
Diffstat (limited to 'src/posix.h')
-rw-r--r-- | src/posix.h | 6 |
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 |