Commit d668820d by Jacques Germishuys

NetBSD < 7 doesn't have posix_fallocate

See: https://www.netbsd.org/changes/changes-7.0.html
parent 7a0238b1
...@@ -157,7 +157,7 @@ int p_rename(const char *from, const char *to) ...@@ -157,7 +157,7 @@ int p_rename(const char *from, const char *to)
int p_fallocate(int fd, off_t offset, off_t len) int p_fallocate(int fd, off_t offset, off_t len)
{ {
#ifdef __APPLE__ #if defined (__APPLE__) || (defined (__NetBSD__) && __NetBSD_Version__ < 700000000)
fstore_t prealloc; fstore_t prealloc;
struct stat st; struct stat st;
size_t newsize; size_t newsize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment