From 46dc6c8f550e64ed07650b98ea437fdbb1de54c7 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 30 Jul 1998 15:33:13 +0000 Subject: Fri Jul 31 00:05:45 1998 Ross Johnson * Makefile (SRCS): Create. Preliminary. * windows.h: Create. Contains Win32 definitions for compile testing. This is just a standin for the real one. * pthread.h (SIG_UNBLOCK): Fix typo. Was SIG_BLOCK. (windows.h): Add include. Required for CRITICAL_SECTION. (pthread_cond_t): Move enum declaration outside of struct definition. (unistd.h): Add include - may be temporary. * condvar.c (windows.h): Add include. --- pthread.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index d2be555..17f91b7 100644 --- a/pthread.h +++ b/pthread.h @@ -22,6 +22,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef _PTHREADS_H #define _PTHREADS_H +#include +#include + #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ @@ -35,7 +38,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #endif /* SIG_BLOCK */ #ifndef SIG_UNBLOCK -#define SIG_BLOCK 1 +#define SIG_UNBLOCK 1 #endif /* SIG_UNBLOCK */ #ifndef SIG_SETMASK @@ -96,9 +99,9 @@ struct sched_param { int sched_priority; } -typedef struct { - enum { SIGNAL, BROADCAST, NUM_EVENTS }; +enum { SIGNAL, BROADCAST, NUM_EVENTS }; +typedef struct { /* Signal and broadcast event HANDLEs. */ HANDLE events[NUM_EVENTS]; -- cgit v1.2.3