Skip to content

Commit

Permalink
Remove unneeded include mach-o/getsect.h from os_dep.c
Browse files Browse the repository at this point in the history
(fix of commit 8b90a7c)

Issue #514 (bdwgc).

* os_dep.c [DARWIN]: Do not include mach-o/getsect.h if DYNAMIC_LOADING
or GC_DONT_REGISTER_MAIN_STATIC_DATA.
  • Loading branch information
ivmai committed Dec 24, 2023
1 parent 2413ad9 commit 71d1ba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion os_dep.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
# include <errno.h>
#endif

#ifdef DARWIN
#if defined(DARWIN) && !defined(DYNAMIC_LOADING) \
&& !defined(GC_DONT_REGISTER_MAIN_STATIC_DATA)
/* for get_etext and friends */
# include <mach-o/getsect.h>
#endif
Expand Down

0 comments on commit 71d1ba4

Please sign in to comment.