summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorbje <bje>1998-09-12 07:59:34 +0000
committerbje <bje>1998-09-12 07:59:34 +0000
commitb63e40988fde13ccd11dea845bd9008c56b21cdb (patch)
treee2db70ba088ec35c71c59781551775c4847ac0f0 /signal.c
parentbebf4fe4f6ae3d8296a6b9144876d08e5de2261a (diff)
1998-09-12 Ben Elliston <bje@cygnus.com>
* {most}.c: Include <errno.h> to get POSIX error values. * signal.c (pthread_sigmask): Only provide if HAVE_SIGSET_T is defined. * config.h: #undef features, don't #define them. This will be generated by autoconf very soon.
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index 6fb9de0..30189d9 100644
--- a/signal.c
+++ b/signal.c
@@ -5,9 +5,13 @@
* POSIX thread-aware signal functions.
*/
+#include <errno.h>
+
#include "pthread.h"
#include "implement.h"
+#ifdef HAVE_SIGSET_T
+
int
pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
{
@@ -70,3 +74,5 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
return 0;
}
+
+#endif /* HAVE_SIGSET_T */