Skip to content

Commit d668820

Browse files
committed
NetBSD < 7 doesn't have posix_fallocate
See: https://www.netbsd.org/changes/changes-7.0.html
1 parent 7a0238b commit d668820

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)