Skip to content

Commit 2b8a05c

Browse files
authored
Merge pull request libgit2#5086 from jacquesg/netbsd
Restore NetBSD support
2 parents 7a0238b + d668820 commit 2b8a05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ int p_rename(const char *from, const char *to)
157157

158158
int p_fallocate(int fd, off_t offset, off_t len)
159159
{
160-
#ifdef __APPLE__
160+
#if defined (__APPLE__) || (defined (__NetBSD__) && __NetBSD_Version__ < 700000000)
161161
fstore_t prealloc;
162162
struct stat st;
163163
size_t newsize;

0 commit comments

Comments
 (0)