Bug 3883

Summary: sigwait fails to compile without rt_sigtimedwait
Product: uClibc Reporter: Michael Deutschmann <michael>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: minor CC: uclibc-cvs
Priority: P5    
Version: 0.9.32   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Patch to avoid sigwaitinfo use on old kernels

Description Michael Deutschmann 2011-06-17 14:01:24 UTC
Created attachment 3427 [details]
Patch to avoid sigwaitinfo use on old kernels

On my system, stock uClibc-0.9.32 fails to compile with:

libc/libc_so.a(sigwait.os): In function `sigwait':
sigwait.c:(.text.sigwait+0x13): undefined reference to `__GI_sigwaitinfo'

The problem is that sigwait() is defined in terms of sigwaitinfo() if __UCLIBC_HAS_REALTIME is defined, but sigwaitinfo is not generated because my kernel doesn't have the rt_sigtimedwait call.

Attached is a patch to steer uClibc down the non-realtime path if the syscall isn't available.