blob: c3f7b3e479cc8fb98a0c4664bf054a97f626a5aa [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---
Patrick Williams520786c2023-06-25 16:20:36 -05009Upstream-Status: Pending
10
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011 shm.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14diff --git a/shm.c b/shm.c
15index 1f82cab..9447b63 100644
16--- a/shm.c
17+++ b/shm.c
18@@ -48,10 +48,11 @@
19 * system shmget() may be performed without worry as there is no dynamic
20 * call chain.
21 */
22+#ifdef __GLIBC__
23 extern void *dlsym (void *__restrict __handle, __const char *__restrict __name)
24 __attribute__((weak)) __THROW __nonnull ((2));
25 extern char *dlerror (void) __attribute__((weak)) __THROW;
26-
27+#endif
28
29 /* call syscall shmget through the generic syscall mechanism */
30 static int syscall_shmget(key_t key, size_t size, int shmflg)