aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/libhugetlbfs/files/0004-shm.c-Mark-glibc-specific-changes-so.patch
blob: c3f7b3e479cc8fb98a0c4664bf054a97f626a5aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 9ce323432a7f4d99f617970c7e35b607b9bbf843 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 21 Jun 2018 19:48:04 -0700
Subject: [PATCH] shm.c: Mark glibc specific changes so

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
Upstream-Status: Pending

 shm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shm.c b/shm.c
index 1f82cab..9447b63 100644
--- a/shm.c
+++ b/shm.c
@@ -48,10 +48,11 @@
  * system shmget() may be performed without worry as there is no dynamic
  * call chain.
  */
+#ifdef __GLIBC__
 extern void *dlsym (void *__restrict __handle, __const char *__restrict __name)
 		__attribute__((weak)) __THROW __nonnull ((2));
 extern char *dlerror (void) __attribute__((weak)) __THROW;
-
+#endif
 
 /* call syscall shmget through the generic syscall mechanism */
 static int syscall_shmget(key_t key, size_t size, int shmflg)