diff options
author | Jacques Germishuys <jacques.germishuys@gmail.com> | 2019-05-24 10:48:47 +0100 |
---|---|---|
committer | Jacques Germishuys <jacques.germishuys@gmail.com> | 2019-05-24 10:48:47 +0100 |
commit | d668820dc885669b7d87b08041fe5ff7cb396098 (patch) | |
tree | fa0675109c8b7fb694462cdee1624de804141fb7 /src | |
parent | 7a0238b18b25f65eb3e67fbd9d6a8a0afc58664a (diff) | |
download | libgit2-d668820dc885669b7d87b08041fe5ff7cb396098.tar.gz |
NetBSD < 7 doesn't have posix_fallocate
See: https://www.netbsd.org/changes/changes-7.0.html
Diffstat (limited to 'src')
-rw-r--r-- | src/posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.c b/src/posix.c index b5dfac56d..32ca704f1 100644 --- a/src/posix.c +++ b/src/posix.c @@ -157,7 +157,7 @@ int p_rename(const char *from, const char *to) int p_fallocate(int fd, off_t offset, off_t len) { -#ifdef __APPLE__ +#if defined (__APPLE__) || (defined (__NetBSD__) && __NetBSD_Version__ < 700000000) fstore_t prealloc; struct stat st; size_t newsize; |