mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 16:22:40 +00:00
mingw: Fix compilation
This commit is contained in:
parent
2a406ab51c
commit
e35e9fb4c3
@ -720,7 +720,7 @@ int gitfo_readlink__w32(const char *link, char *target, size_t target_len)
|
|||||||
if (hFile == INVALID_HANDLE_VALUE)
|
if (hFile == INVALID_HANDLE_VALUE)
|
||||||
return GIT_EOSERR;
|
return GIT_EOSERR;
|
||||||
|
|
||||||
dwRet = pGetFinalPath(hFile, target, target_len, VOLUME_NAME_DOS);
|
dwRet = pGetFinalPath(hFile, target, target_len, 0x0);
|
||||||
if (dwRet >= target_len)
|
if (dwRet >= target_len)
|
||||||
return GIT_ENOMEM;
|
return GIT_ENOMEM;
|
||||||
|
|
||||||
|
@ -8,6 +8,11 @@
|
|||||||
# define stat _stati64
|
# define stat _stati64
|
||||||
# define fstat _fstati64
|
# 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
|
||||||
|
|
||||||
#endif /* INCLUDE_mingw_compat__ */
|
#endif /* INCLUDE_mingw_compat__ */
|
||||||
|
Loading…
Reference in New Issue
Block a user