blob: 58776e87100c8448a7a0b0bdd9caf6bf1043f731 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 9ce323432a7f4d99f617970c7e35b607b9bbf843 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:48:04 -0700
4Subject: [PATCH] shm.c: Mark glibc specific changes so
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9 shm.c | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12diff --git a/shm.c b/shm.c
13index 1f82cab..9447b63 100644
14--- a/shm.c
15+++ b/shm.c
16@@ -48,10 +48,11 @@
17 * system shmget() may be performed without worry as there is no dynamic
18 * call chain.
19 */
20+#ifdef __GLIBC__
21 extern void *dlsym (void *__restrict __handle, __const char *__restrict __name)
22 __attribute__((weak)) __THROW __nonnull ((2));
23 extern char *dlerror (void) __attribute__((weak)) __THROW;
24-
25+#endif
26
27 /* call syscall shmget through the generic syscall mechanism */
28 static int syscall_shmget(key_t key, size_t size, int shmflg)