diff options
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch')
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch new file mode 100644 index 0000000000..4fbf30e24b --- /dev/null +++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 37239dd5f14a34b05e77b3ca6e34f96161f1339a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 21 Jun 2018 19:48:04 -0700 | ||
4 | Subject: [PATCH] shm.c: Mark glibc specific changes so | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- | ||
10 | shm.c | 3 ++- | ||
11 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/shm.c b/shm.c | ||
14 | index 1f82cab..9447b63 100644 | ||
15 | --- a/shm.c | ||
16 | +++ b/shm.c | ||
17 | @@ -48,10 +48,11 @@ | ||
18 | * system shmget() may be performed without worry as there is no dynamic | ||
19 | * call chain. | ||
20 | */ | ||
21 | +#ifdef __GLIBC__ | ||
22 | extern void *dlsym (void *__restrict __handle, __const char *__restrict __name) | ||
23 | __attribute__((weak)) __THROW __nonnull ((2)); | ||
24 | extern char *dlerror (void) __attribute__((weak)) __THROW; | ||
25 | - | ||
26 | +#endif | ||
27 | |||
28 | /* call syscall shmget through the generic syscall mechanism */ | ||
29 | static int syscall_shmget(key_t key, size_t size, int shmflg) | ||
30 | -- | ||
31 | 2.25.1 | ||
32 | |||