Skip to content

Commit

Permalink
Assume clock_gettime(), pthread_setname_np() always available on Cosmo
Browse files Browse the repository at this point in the history
Issue #666 (bdwgc).

* include/private/gcconfig.h [COSMO && !HAVE_CLOCK_GETTIME]
(HAVE_CLOCK_GETTIME): Define (to 1).
* include/private/gcconfig.h [COSMO
&& !HAVE_PTHREAD_SETNAME_NP_WITH_TID]
(HAVE_PTHREAD_SETNAME_NP_WITH_TID): Likewise.
  • Loading branch information
ivmai committed Oct 15, 2024
1 parent 380f510 commit 892aa99
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/private/gcconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,13 @@ extern int __data_start[] __attribute__((__weak__));
extern int _end[];
# define DATAEND ((ptr_t)_end)
# define USE_MMAP_ANON
# ifndef HAVE_CLOCK_GETTIME
# define HAVE_CLOCK_GETTIME 1
# endif
# ifndef HAVE_PTHREAD_SETNAME_NP_WITH_TID
/* Normally should be defined by configure, etc. */
# define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1
# endif
#endif /* COSMO */

#ifdef DARWIN
Expand Down

0 comments on commit 892aa99

Please sign in to comment.