diff options
author | Russell Belfer <rb@github.com> | 2012-07-09 21:49:34 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-07-09 21:49:34 -0700 |
commit | 1de11acafb54eebb2b61a04879705c967247cf08 (patch) | |
tree | fedccaf793870375465e639ab0516ea9b0439793 /src | |
parent | b00e9216058e58fd17d27df55cac3b991ad7bd31 (diff) | |
parent | 296f60f56da4854d746984415e7e9887796d4e64 (diff) | |
download | libgit2-1de11acafb54eebb2b61a04879705c967247cf08.tar.gz |
Merge pull request #810 from Steap/development
Fix libgit2 on GNU/Hurd.
Diffstat (limited to 'src')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c index a6574b3de..9c88240e0 100644 --- a/src/path.c +++ b/src/path.c @@ -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)); |