From f6482dfeb75f45a5ab3799b471803aef1bbfe399 Mon Sep 17 00:00:00 2001 From: Avi Kivity <avi@cloudius-systems.com> Date: Wed, 22 May 2013 12:29:49 +0300 Subject: [PATCH] fs: mark pwrite64() as extern "C" As part of the include change fallout, we no longer have a declaration for pwrite64(), so need to mark it as extern "C". --- fs/vfs/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/vfs/main.cc b/fs/vfs/main.cc index c5820755e..14ae307d3 100755 --- a/fs/vfs/main.cc +++ b/fs/vfs/main.cc @@ -240,6 +240,7 @@ out_errno: return -1; } +extern "C" ssize_t pwrite64(int, const void*, size_t, off_t) __attribute__((weak, alias("pwrite"))); ssize_t write(int fd, const void *buf, size_t count) -- GitLab