Skip to content

Commit

Permalink
Fix missing extern C for __asan_default_options
Browse files Browse the repository at this point in the history
(fix of commit 84b695d)

Issue #206 (bdwgc).

* os_dep.c [ADDRESS_SANITIZER && (UNIX_LIKE || NEED_FIND_LIMIT
|| MPROTECT_VDB) && !CUSTOM_ASAN_DEF_OPTIONS] (__asan_default_options):
Add the declaration wrapped into EXTERN_C_BEGIN.
  • Loading branch information
ivmai committed Apr 28, 2023
1 parent 716f616 commit bef858c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions os_dep.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ GC_INNER const char * GC_get_maps(void)
#if defined(ADDRESS_SANITIZER) && (defined(UNIX_LIKE) \
|| defined(NEED_FIND_LIMIT) || defined(MPROTECT_VDB)) \
&& !defined(CUSTOM_ASAN_DEF_OPTIONS)
EXTERN_C_BEGIN
GC_API const char *__asan_default_options(void);
EXTERN_C_END

/* To tell ASan to allow GC to use its own SIGBUS/SEGV handlers. */
/* The function is exported just to be visible to ASan library. */
GC_API const char *__asan_default_options(void)
Expand Down

0 comments on commit bef858c

Please sign in to comment.