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