[PATCH] Include <signal.h> in <nptl-signals.h>
Andreas Schwab
schwab@suse.de
Mon Jan 26 13:33:00 GMT 2015
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>.
diff --git a/sysdeps/unix/sysv/linux/nptl-signals.h b/sysdeps/unix/sysv/linux/nptl-signals.h
index f45f170..b7b74ad 100644
--- a/sysdeps/unix/sysv/linux/nptl-signals.h
+++ b/sysdeps/unix/sysv/linux/nptl-signals.h
@@ -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
--
2.2.2
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Libc-alpha
mailing list