Skip to content

Commit 7ff366f

Browse files
committed
include sys/prctl in gc/default.c
1 parent 3189785 commit 7ff366f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

gc/default/default.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ static struct heap_page *current_sweep_thread_page;
192192
#endif
193193
#endif
194194

195+
#ifdef HAVE_SYS_PRCTL_H
196+
#include <sys/prctl.h>
197+
#endif
195198
#if !defined(SET_CURRENT_THREAD_NAME) && defined(__linux__) && defined(PR_SET_NAME)
196199
# define SET_CURRENT_THREAD_NAME(name) prctl(PR_SET_NAME, name)
197200
#endif

0 commit comments

Comments
 (0)