Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 9ce323432a7f4d99f617970c7e35b607b9bbf843 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] shm.c: Mark glibc specific changes so |
| 5 | |
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | |
| 8 | --- |
| 9 | shm.c | 3 ++- |
| 10 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/shm.c b/shm.c |
| 13 | index 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) |