Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/pthread')
-rw-r--r--winsup/testsuite/winsup.api/pthread/mainthreadexits.c1
-rw-r--r--winsup/testsuite/winsup.api/pthread/test.h2
-rw-r--r--winsup/testsuite/winsup.api/pthread/threadidafterfork.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/pthread/mainthreadexits.c b/winsup/testsuite/winsup.api/pthread/mainthreadexits.c
index dbd6969dd..b3a3653b8 100644
--- a/winsup/testsuite/winsup.api/pthread/mainthreadexits.c
+++ b/winsup/testsuite/winsup.api/pthread/mainthreadexits.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
+#include <stdlib.h>
static void * Thread (void *);
diff --git a/winsup/testsuite/winsup.api/pthread/test.h b/winsup/testsuite/winsup.api/pthread/test.h
index a9a211dd7..3e662a315 100644
--- a/winsup/testsuite/winsup.api/pthread/test.h
+++ b/winsup/testsuite/winsup.api/pthread/test.h
@@ -16,7 +16,7 @@
/* #define assert(x) do { fprint (stderr, "assertion failed\n"); exit(1) } while (0) */
-char * error_string[] = {
+const char * error_string[] = {
"ZERO_or_EOK",
"EPERM",
"ENOFILE_or_ENOENT",
diff --git a/winsup/testsuite/winsup.api/pthread/threadidafterfork.c b/winsup/testsuite/winsup.api/pthread/threadidafterfork.c
index da93a4d3f..473eaecfd 100644
--- a/winsup/testsuite/winsup.api/pthread/threadidafterfork.c
+++ b/winsup/testsuite/winsup.api/pthread/threadidafterfork.c
@@ -2,6 +2,7 @@
#include <unistd.h>
#include <sys/wait.h>
#include <pthread.h>
+#include <stdlib.h>
static void * TestThread ( void * );