summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-15 20:27:17 -0800
committerKhem Raj <raj.khem@gmail.com>2020-01-15 23:17:45 -0800
commit739bcd18df045406ded3150ee0518c91332c9e47 (patch)
treecdf370c2642191152504ee9a48ce671f0175c729
parent55553fde2d0d8f78a636850f19a8de5e97334ad5 (diff)
downloadmeta-openembedded-739bcd18df045406ded3150ee0518c91332c9e47.tar.gz
iozone3: Do not define prototype for pread64()
Use the one from system headers Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch34
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3_488.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch b/meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch
new file mode 100644
index 0000000000..a61a56a71d
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch
@@ -0,0 +1,34 @@
1From 64389a67b93a53b9fb7e9e20e905a5ee4613606b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 15 Jan 2020 17:10:42 -0800
4Subject: [PATCH] let system headers provide pread64()
5
6The signature does not match with system headers anyway
7
8Fixes
9
10iozone.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, ^
111 error generated.
12
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 iozone.c | 1 -
18 1 file changed, 1 deletion(-)
19
20diff --git a/iozone.c b/iozone.c
21index 090dd5f..fdea400 100644
22--- a/iozone.c
23+++ b/iozone.c
24@@ -1267,7 +1267,6 @@ int pit_gettimeofday();
25 #ifdef HAVE_ANSIC_C
26 #if defined (HAVE_PREAD) && defined(_LARGEFILE64_SOURCE)
27 ssize_t pwrite64();
28-ssize_t pread64();
29 #endif
30 #if !defined(linux)
31 char *getenv();
32--
332.25.0
34
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3_488.bb b/meta-oe/recipes-benchmark/iozone3/iozone3_488.bb
index 5885b145e9..4d9e07765f 100644
--- a/meta-oe/recipes-benchmark/iozone3/iozone3_488.bb
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3_488.bb
@@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://iozone.c;beginline=37;endline=48;md5=7331260091868dca
8" 8"
9SRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \ 9SRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \
10 file://parallelism.patch \ 10 file://parallelism.patch \
11 file://0001-let-system-headers-provide-pread64.patch \
11 file://copyright.txt \ 12 file://copyright.txt \
12" 13"
13SRC_URI[md5sum] = "d60a69e44cda8436f4f94d860958efc2" 14SRC_URI[md5sum] = "d60a69e44cda8436f4f94d860958efc2"