mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:37:29 +00:00
Merge pull request #810 from Steap/development
Fix libgit2 on GNU/Hurd.
This commit is contained in:
commit
1de11acafb
@ -515,7 +515,7 @@ int git_path_direach(
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef __sun
|
||||
#if defined(__sun) || defined(__GNU__)
|
||||
de_buf = git__malloc(sizeof(struct dirent) + FILENAME_MAX + 1);
|
||||
#else
|
||||
de_buf = git__malloc(sizeof(struct dirent));
|
||||
@ -569,7 +569,7 @@ int git_path_dirload(
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef __sun
|
||||
#if defined(__sun) || defined(__GNU__)
|
||||
de_buf = git__malloc(sizeof(struct dirent) + FILENAME_MAX + 1);
|
||||
#else
|
||||
de_buf = git__malloc(sizeof(struct dirent));
|
||||
|
Loading…
Reference in New Issue
Block a user