summaryrefslogtreecommitdiff
path: root/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'create.c')
-rw-r--r--create.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/create.c b/create.c
index dfaada6..b8fd864 100644
--- a/create.c
+++ b/create.c
@@ -26,7 +26,9 @@
#include "pthread.h"
#include "implement.h"
+#ifndef _UWIN
#include <process.h>
+#endif
int
pthread_create (pthread_t * tid,
@@ -213,6 +215,10 @@ FAIL0:
}
*tid = thread;
+#ifdef _UWIN
+ if (result == 0)
+ pthread_count++;
+#endif
return (result);
} /* pthread_create */