From 2c3852d9e6fc33ed54009641dbb716471ec40854 Mon Sep 17 00:00:00 2001 From: tidwall Date: Fri, 19 Apr 2024 19:41:30 -0700 Subject: [PATCH] Update llco See #9 See https://github.com/tidwall/llco/commit/b6a5a5b886e8a3e06806d741b84571c0b1e1f8d0 --- deps/.package | 6 ++++-- deps/sco.c | 3 ++- neco.c | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/deps/.package b/deps/.package index 149cfb4..42fe058 100644 --- a/deps/.package +++ b/deps/.package @@ -1,2 +1,4 @@ -import github.com/tidwall/sco v0.1.0 -import github.com/tidwall/stack v0.1.0 +import github.com/tidwall/sco v0.1.1 + +sum ad1e36373245380b0f5588c11f1a69369171436a sco.c +sum 92baa4119d14dbb2b1effcd2eaeb4adcba8befc1 sco.h diff --git a/deps/sco.c b/deps/sco.c index d4e3636..c50ffc5 100644 --- a/deps/sco.c +++ b/deps/sco.c @@ -1182,7 +1182,8 @@ struct llco_dlinfo { void *dli_saddr; /* Address of nearest symbol */ }; -#ifdef __linux__ + +#if defined(__linux__) && !defined(_GNU_SOURCE) int dladdr(const void *, void *); #endif diff --git a/neco.c b/neco.c index 9f3972d..2779446 100644 --- a/neco.c +++ b/neco.c @@ -1328,7 +1328,8 @@ struct llco_dlinfo { void *dli_saddr; /* Address of nearest symbol */ }; -#ifdef __linux__ + +#if defined(__linux__) && !defined(_GNU_SOURCE) int dladdr(const void *, void *); #endif