1*0e2770caSBrad BishopFrom 64389a67b93a53b9fb7e9e20e905a5ee4613606b Mon Sep 17 00:00:00 2001 2*0e2770caSBrad BishopFrom: Khem Raj <raj.khem@gmail.com> 3*0e2770caSBrad BishopDate: Wed, 15 Jan 2020 17:10:42 -0800 4*0e2770caSBrad BishopSubject: [PATCH] let system headers provide pread64() 5*0e2770caSBrad Bishop 6*0e2770caSBrad BishopThe signature does not match with system headers anyway 7*0e2770caSBrad Bishop 8*0e2770caSBrad BishopFixes 9*0e2770caSBrad Bishop 10*0e2770caSBrad Bishopiozone.c:1270:9: error: redeclaration of 'pread64' must have the 'overloadable' attribute ssize_t pread64(); ^ /mnt/b/yoe/build/tmp/work/core2-64-yoe-linux/iozone3/488-r0/recipe-sysroot/usr/include/bits/unistd.h:83:1: note: previous overload of function is here pread64 (int __fd, void *const __clang_pass_object_size0 __buf, ^ 11*0e2770caSBrad Bishop1 error generated. 12*0e2770caSBrad Bishop 13*0e2770caSBrad BishopUpstream-Status: Pending 14*0e2770caSBrad Bishop 15*0e2770caSBrad BishopSigned-off-by: Khem Raj <raj.khem@gmail.com> 16*0e2770caSBrad Bishop--- 17*0e2770caSBrad Bishop iozone.c | 1 - 18*0e2770caSBrad Bishop 1 file changed, 1 deletion(-) 19*0e2770caSBrad Bishop 20*0e2770caSBrad Bishopdiff --git a/iozone.c b/iozone.c 21*0e2770caSBrad Bishopindex 090dd5f..fdea400 100644 22*0e2770caSBrad Bishop--- a/iozone.c 23*0e2770caSBrad Bishop+++ b/iozone.c 24*0e2770caSBrad Bishop@@ -1267,7 +1267,6 @@ int pit_gettimeofday(); 25*0e2770caSBrad Bishop #ifdef HAVE_ANSIC_C 26*0e2770caSBrad Bishop #if defined (HAVE_PREAD) && defined(_LARGEFILE64_SOURCE) 27*0e2770caSBrad Bishop ssize_t pwrite64(); 28*0e2770caSBrad Bishop-ssize_t pread64(); 29*0e2770caSBrad Bishop #endif 30*0e2770caSBrad Bishop #if !defined(linux) 31*0e2770caSBrad Bishop char *getenv(); 32*0e2770caSBrad Bishop-- 33*0e2770caSBrad Bishop2.25.0 34*0e2770caSBrad Bishop 35