forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 64389a67b93a53b9fb7e9e20e905a5ee4613606b Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 15 Jan 2020 17:10:42 -0800
Subject: [PATCH] let system headers provide pread64()
 
The signature does not match with system headers anyway
 
Fixes
 
iozone.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,                 ^
1 error generated.
 
Upstream-Status: Pending
 
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 iozone.c | 1 -
 1 file changed, 1 deletion(-)
 
diff --git a/iozone.c b/iozone.c
index 090dd5f..fdea400 100644
--- a/iozone.c
+++ b/iozone.c
@@ -1267,7 +1267,6 @@ int pit_gettimeofday();
 #ifdef HAVE_ANSIC_C
 #if defined (HAVE_PREAD) && defined(_LARGEFILE64_SOURCE)
 ssize_t pwrite64(); 
-ssize_t pread64(); 
 #endif
 #if !defined(linux)
 char *getenv();
-- 
2.25.0