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
e35e9fb4
Commit
e35e9fb4
authored
Jun 18, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mingw: Fix compilation
parent
2a406ab5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/fileops.c
+1
-1
src/mingw-compat.h
+5
-0
No files found.
src/fileops.c
View file @
e35e9fb4
...
...
@@ -720,7 +720,7 @@ int gitfo_readlink__w32(const char *link, char *target, size_t target_len)
if
(
hFile
==
INVALID_HANDLE_VALUE
)
return
GIT_EOSERR
;
dwRet
=
pGetFinalPath
(
hFile
,
target
,
target_len
,
VOLUME_NAME_DOS
);
dwRet
=
pGetFinalPath
(
hFile
,
target
,
target_len
,
0x0
);
if
(
dwRet
>=
target_len
)
return
GIT_ENOMEM
;
...
...
src/mingw-compat.h
View file @
e35e9fb4
...
...
@@ -8,6 +8,11 @@
# define stat _stati64
# define fstat _fstati64
/* stat: file mode type testing macros */
# define _S_IFLNK 0120000
# define S_IFLNK _S_IFLNK
# define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK)
#endif
#endif
/* INCLUDE_mingw_compat__ */
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