summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-13 23:16:14 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-13 23:16:14 +0100
commit96ef3d84629ef72fb662d95abbab3de634921678 (patch)
tree1859c8ce4b577acce3c5561d7f749f5a23574d58 /src/path.c
parent2aeadb9c78df4b463ffb3293e242e19a7e0d17a9 (diff)
downloadlibgit2-96ef3d84629ef72fb662d95abbab3de634921678.tar.gz
Make this more generic and mergeable.
Needs AmigaOS.cmake now from CMake package at OS4Depot, or contents below: --8<-- SET(AMIGA 1) SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") --8<--
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c
index eb9bc06f3..596dad164 100644
--- a/src/path.c
+++ b/src/path.c
@@ -517,7 +517,7 @@ int git_path_direach(
de_buf = git__malloc(sizeof(struct dirent));
#endif
-#ifdef __amigaos4__
+#ifdef NO_READDIR_R
while (de = readdir(dir)) {
#else
while (p_readdir_r(dir, de_buf, de) == 0 && de != NULL) {