Fix Windows compilation (#2506)
* docs: Fix Windows compile instructions Signed-off-by: Naoki Ikeguchi <me@s6n.jp> * fix: Use fallocate stub on MSYS2 Signed-off-by: Naoki Ikeguchi <me@s6n.jp> --------- Signed-off-by: Naoki Ikeguchi <me@s6n.jp>
This commit is contained in:
@ -2427,7 +2427,7 @@ int FdEntity::UploadPendingHasLock(int fd)
|
||||
// For systems where the fallocate function cannot be detected, use a dummy function.
|
||||
// ex. OSX
|
||||
//
|
||||
#ifndef HAVE_FALLOCATE
|
||||
#if !defined(HAVE_FALLOCATE) || defined(__MSYS__)
|
||||
static int fallocate(int /*fd*/, int /*mode*/, off_t /*offset*/, off_t /*len*/)
|
||||
{
|
||||
errno = ENOSYS; // This is a bad idea, but the caller can handle it simply.
|
||||
|
||||
Reference in New Issue
Block a user