diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-12-25 20:13:32 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-12-27 09:55:18 -0800 |
commit | f586744ab04af1de1105b38afab17a04c77c5c42 (patch) | |
tree | 17bb45ff84e60417773843bd31f8c2d8f8d9a5fa /meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch | |
parent | c011ae12dc4ab2ac183d028967a3a27ce7ced351 (diff) | |
download | meta-openembedded-f586744ab04af1de1105b38afab17a04c77c5c42.tar.gz |
gperftools: Define off64_t on musl
alias it to off_t which is 64bit always on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch')
-rw-r--r-- | meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch b/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch deleted file mode 100644 index baaaa4b53..000000000 --- a/meta-oe/recipes-support/gperftools/gperftools/0001-fix-build-with-musl-libc.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 696674a800cb6d2070897a565b92d7e63022a8f1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 16 Jul 2017 15:51:28 -0700 | ||
4 | Subject: [PATCH] fix build with musl libc | ||
5 | |||
6 | Patch from https://github.com/gperftools/gperftools/pull/765/ | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | src/malloc_hook_mmap_linux.h | 6 +++++- | ||
11 | 1 file changed, 5 insertions(+), 1 deletion(-) | ||
12 | |||
13 | --- a/src/malloc_hook_mmap_linux.h | ||
14 | +++ b/src/malloc_hook_mmap_linux.h | ||
15 | @@ -45,6 +45,10 @@ | ||
16 | #include <sys/syscall.h> | ||
17 | #include <unistd.h> | ||
18 | |||
19 | +#ifndef __GLIBC__ | ||
20 | +typedef off64_t __off64_t; | ||
21 | +#endif | ||
22 | + | ||
23 | // The x86-32 case and the x86-64 case differ: | ||
24 | // 32b has a mmap2() syscall, 64b does not. | ||
25 | // 64b and 32b have different calling conventions for mmap(). | ||
26 | @@ -175,7 +179,7 @@ extern "C" void* mmap64(void *start, siz | ||
27 | return result; | ||
28 | } | ||
29 | |||
30 | -# if !defined(__USE_FILE_OFFSET64) || !defined(__REDIRECT_NTH) | ||
31 | +# if defined(__GLIBC__) && (!defined(__USE_FILE_OFFSET64) || !defined(__REDIRECT_NTH)) | ||
32 | |||
33 | extern "C" void* mmap(void *start, size_t length, int prot, int flags, | ||
34 | int fd, off_t offset) __THROW { | ||