Skip to content

Commit

Permalink
Fix 'MADV_DONTNEED undeclared' compiler error in os_dep.c on Cosmo
Browse files Browse the repository at this point in the history
(fix of commit a72ac8b)

Issue #666 (bdwgc).

Note: the error was observed when compiling on Darwin only.

* include/private/gc_priv.h [!__linux__ && __COSMOPOLITAN__
&& USE_MUNMAP && !_GNU_SOURCE] (_GNU_SOURCE): Define.
  • Loading branch information
ivmai committed Oct 17, 2024
1 parent 8603735 commit 9f35017
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/private/gc_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#if (defined(__linux__) || defined(__GLIBC__) || defined(__GNU__) \
|| defined(__CYGWIN__) || defined(HAVE_DLADDR) \
|| (defined(__COSMOPOLITAN__) && defined(USE_MUNMAP)) \
|| defined(GC_HAVE_PTHREAD_SIGMASK) \
|| defined(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID) \
|| defined(HAVE_PTHREAD_SETNAME_NP_WITH_TID_AND_ARG) \
Expand Down

0 comments on commit 9f35017

Please sign in to comment.