Removed GLIBC_2.10 [#CLICKHOUSE-3989]

This commit is contained in:
Alexey Milovidov 2018-09-14 05:48:24 +03:00
parent 7c675aac45
commit 38534bba80
2 changed files with 13 additions and 1 deletions

View File

@ -17,7 +17,8 @@ musl/syscall.s
musl/syscall_ret.c
musl/sched_cpucount.c
musl/glob.c
musl/exp2f.c)
musl/exp2f.c
musl/pwritev.c)
if (MAKE_STATIC_LIBRARIES)
set (GLIBC_COMPATIBILITY_SOURCES ${GLIBC_COMPATIBILITY_SOURCES}

View File

@ -0,0 +1,11 @@
#define _DEFAULT_SOURCE
#include <sys/uio.h>
#include <unistd.h>
#include <syscall.h>
#include "syscall.h"
ssize_t pwritev(int fd, const struct iovec *iov, int count, off_t ofs)
{
/// There was cancellable syscall (syscall_cp), but I don't care.
return syscall(SYS_pwritev, fd, iov, count, (long)(ofs), (long)(ofs>>32));
}