diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch b/meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch new file mode 100644 index 0000000000..56a48abcc9 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0006-sendfile-Use-off64_t-instead-of-__off64_t.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From fb8b895385a641d74f2186fe5f20a872209692ed Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 7 Jan 2016 18:24:20 +0000 | ||
4 | Subject: [PATCH 06/32] sendfile: Use off64_t instead of __off64_t | ||
5 | |||
6 | __off64_t is specific to glibc where as off64_t is widely available | ||
7 | Add _GNU_SOURCE for off64_t defines from sys/types.h | ||
8 | Fixes | ||
9 | <command-line>:0:7: error: unknown type name 'off64_t' | ||
10 | sendfile02.c:97:18: note: in expansion of macro 'OFF_T' | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | --- | ||
14 | testcases/kernel/syscalls/sendfile/Makefile | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/testcases/kernel/syscalls/sendfile/Makefile b/testcases/kernel/syscalls/sendfile/Makefile | ||
18 | index df7b63f..1bd1b57 100644 | ||
19 | --- a/testcases/kernel/syscalls/sendfile/Makefile | ||
20 | +++ b/testcases/kernel/syscalls/sendfile/Makefile | ||
21 | @@ -21,6 +21,6 @@ top_srcdir ?= ../../../.. | ||
22 | include $(top_srcdir)/include/mk/testcases.mk | ||
23 | include $(abs_srcdir)/../utils/newer_64.mk | ||
24 | |||
25 | -%_64: CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DOFF_T=__off64_t | ||
26 | +%_64: CPPFLAGS += -D_FILE_OFFSET_BITS=64 -DOFF_T=off64_t -D_GNU_SOURCE | ||
27 | |||
28 | include $(top_srcdir)/include/mk/generic_leaf_target.mk | ||
29 | -- | ||
30 | 2.7.0 | ||
31 | |||