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.
This commit is contained in:
parent
4db99f4012
commit
06721a42a1
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user