Include <signal.h> in <nptl-signals.h>
Commit Message
Architectures which don't use hp-timing-common.h don't include
<signal.h> via <sys/param.h>, causing this error:
In file included from ../nptl/pthreadP.h:35:0,
from ../sysdeps/nptl/allocrtsig.c:19:
../sysdeps/unix/sysv/linux/nptl-signals.h:20:25: warning: "__SIGRTMIN" is not defined [-Wundef]
#define SIGCANCEL __SIGRTMIN
^
../sysdeps/unix/sysv/linux/nptl-signals.h:26:25: note: in expansion of macro 'SIGCANCEL'
#define SIGTIMER SIGCANCEL
^
../sysdeps/nptl/allocrtsig.c:30:48: note: in expansion of macro 'SIGTIMER'
#if defined SIGTIMER && (!defined SIGCANCEL || SIGTIMER != SIGCANCEL)
^
Andreas.
* sysdeps/unix/sysv/linux/nptl-signals.h: Include <signal.h>.
Comments
@@ -16,6 +16,8 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#include <signal.h>
+
/* The signal used for asynchronous cancelation. */
#define SIGCANCEL __SIGRTMIN