mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
62d011d0c0
These are needed by newer capnp. musl does the following: #define fallocate64 fallocate #define pwritev64 pwritev
16 lines
337 B
C
16 lines
337 B
C
#define _GNU_SOURCE
|
|
#include <fcntl.h>
|
|
#include <sys/syscall.h>
|
|
|
|
extern long int syscall (long int __sysno, ...) __THROW;
|
|
|
|
int fallocate(int fd, int mode, off_t base, off_t len)
|
|
{
|
|
return syscall(SYS_fallocate, fd, mode, base, len);
|
|
}
|
|
|
|
int fallocate64(int fd, int mode, off_t base, off_t len)
|
|
{
|
|
return fallocate(fd, mode, base, len);
|
|
}
|