From 06721a42a1574df5b69c465a16236c6da8e51703 Mon Sep 17 00:00:00 2001 From: Sevan Janiyan Date: Tue, 25 Dec 2018 03:01:08 +0000 Subject: [PATCH] Do not define sched_yield to a symbol which doesn't exist. This causes problem in pkgsrc and prevents the use of pth. It's better to address the issue here until pthread support is mature and reliance on pth can be removed than to try and bludgeon things in pkgsrc as a workaround. --- include/sched.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sched.h b/include/sched.h index 0a3e423fd2..06b7f84daa 100644 --- a/include/sched.h +++ b/include/sched.h @@ -55,9 +55,11 @@ int sched_yield(void); int __libc_thr_yield(void); __END_DECLS +#ifndef __minix #ifndef __LIBPTHREAD_SOURCE__ #define sched_yield __libc_thr_yield #endif /* __LIBPTHREAD_SOURCE__ */ +#endif /* __minix */ #if defined(_NETBSD_SOURCE)