From 37239dd5f14a34b05e77b3ca6e34f96161f1339a 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

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 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)
-- 
2.25.1

