summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h9
1 files changed, 6 insertions, 3 deletions
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 <windows.h>
+#include <unistd.h>
+
#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];