Bug 11868 - SA_RESTART is unsupported in QNX
Summary: SA_RESTART is unsupported in QNX
Alias: None
Product: ccache
Classification: Unclassified
Component: ccache (show other bugs)
Version: 3.2.5
Hardware: All Other
: P5 normal
Target Milestone: 3.2.6
Assignee: Joel Rosdahl
QA Contact: Joel Rosdahl
Depends on:
Reported: 2016-04-21 14:46 UTC by Igor Rondarev
Modified: 2016-05-07 11:24 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Igor Rondarev 2016-04-21 14:46:05 UTC
Compilation error:

ccache.c: In function 'register_signal_handler':
ccache.c:405: error: 'SA_RESTART' undeclared (first use in this function)
ccache.c:405: error: (Each undeclared identifier is reported only once
ccache.c:405: error: for each function it appears in.)
make: *** [ccache.o] Error 1
make: *** Waiting for unfinished jobs....

Proposed solution (ccache.c:405):

#ifndef __QNXNTO__
        act.sa_flags = SA_RESTART;


        act.sa_flags = SA_RESTART;
Comment 1 Igor Rondarev 2016-04-21 15:03:20 UTC
Forgot to mention, it's really unsupported in QNX 6.5.0, not defined somewhere else or something:

An exerpt from signal.h:

--- cut ---
/* #define SA_RESTART      0x0040 (not supported yet) */    /* Restart the kernel call on signal return */
--- cut ---
Comment 2 Joel Rosdahl 2016-05-07 11:24:44 UTC
Thanks, fixed in 9bfc21b24ef4e5657c9e1b94854ac0d77f0039f1.