diff options
-rw-r--r-- | attr.c | 2 | ||||
-rw-r--r-- | pthread.h | 6 | ||||
-rw-r--r-- | signal.c | 4 |
3 files changed, 5 insertions, 7 deletions
@@ -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 */ @@ -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 */ @@ -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 */ |