Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
aa5a92d1
Commit
aa5a92d1
authored
Jun 08, 2012
by
Chris Young
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OS4 compatibility
parent
51975727
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
include/git2/common.h
+2
-0
src/path.c
+2
-2
src/posix.h
+5
-1
No files found.
include/git2/common.h
View file @
aa5a92d1
...
...
@@ -107,6 +107,8 @@ GIT_EXTERN(int) git_strarray_copy(git_strarray *tgt, const git_strarray *src);
*/
GIT_EXTERN
(
void
)
git_libgit2_version
(
int
*
major
,
int
*
minor
,
int
*
rev
);
GIT_EXTERN
(
int
)
p_fnmatch
(
const
char
*
pattern
,
const
char
*
string
,
int
flags
);
/** @} */
GIT_END_DECL
#endif
src/path.c
View file @
aa5a92d1
...
...
@@ -512,7 +512,7 @@ int git_path_direach(
de_buf
=
git__malloc
(
sizeof
(
struct
dirent
));
#endif
while
(
p_readdir_r
(
dir
,
de_buf
,
&
de
)
==
0
&&
de
!=
NULL
)
{
while
(
p_readdir_r
(
dir
,
de_buf
,
de
)
==
0
&&
de
!=
NULL
)
{
int
result
;
if
(
is_dot_or_dotdot
(
de
->
d_name
))
...
...
@@ -570,7 +570,7 @@ int git_path_dirload(
path_len
-=
prefix_len
;
need_slash
=
(
path_len
>
0
&&
path
[
path_len
-
1
]
!=
'/'
)
?
1
:
0
;
while
((
error
=
p_readdir_r
(
dir
,
de_buf
,
&
de
))
==
0
&&
de
!=
NULL
)
{
while
((
error
=
p_readdir_r
(
dir
,
de_buf
,
de
))
==
0
&&
de
!=
NULL
)
{
char
*
entry_path
;
size_t
entry_len
;
...
...
src/posix.h
View file @
aa5a92d1
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment