summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--attr.c2
-rw-r--r--pthread.h6
-rw-r--r--signal.c4
3 files changed, 5 insertions, 7 deletions
diff --git a/attr.c b/attr.c
index 994a2f2..1f3f996 100644
--- a/attr.c
+++ b/attr.c
@@ -102,7 +102,7 @@ pthread_attr_init(pthread_attr_t *attr)
#endif
attr->detachedstate = PTHREAD_CREATE_JOINABLE;
-#ifdef HAVE_SIGSET_T
+#if HAVE_SIGSET_T
memset(&(attr->sigmask), 0, sizeof(sigset_t));
#endif /* HAVE_SIGSET_T */
diff --git a/pthread.h b/pthread.h
index d3fdb8a..5c31af2 100644
--- a/pthread.h
+++ b/pthread.h
@@ -28,14 +28,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#undef _POSIX_THREAD_ATTR_STACKADDR
#endif
-#ifdef HAVE_CONFIG_H
+#if HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include <windows.h>
#include <time.h>
-#ifdef HAVE_SIGNAL_H
+#if HAVE_SIGNAL_H
#include <signal.h>
#endif /* HAVE_SIGNAL_H */
@@ -90,7 +90,7 @@ typedef struct {
int detachedstate; /* PTHREAD_CREATE_DETACHED
PTHREAD_CREATE_JOINABLE */
-#ifdef HAVE_SIGSET_T
+#if HAVE_SIGSET_T
sigset_t sigmask;
#endif /* HAVE_SIGSET_T */
diff --git a/signal.c b/signal.c
index 30189d9..ad8a614 100644
--- a/signal.c
+++ b/signal.c
@@ -10,8 +10,7 @@
#include "pthread.h"
#include "implement.h"
-#ifdef HAVE_SIGSET_T
-
+#if HAVE_SIGSET_T
int
pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
{
@@ -74,5 +73,4 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
return 0;
}
-
#endif /* HAVE_SIGSET_T */