summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pthread/Makefile.in2
-rw-r--r--test/pthread/tst-c99.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/pthread/Makefile.in b/test/pthread/Makefile.in
index c50748d69..bd6b29b0c 100644
--- a/test/pthread/Makefile.in
+++ b/test/pthread/Makefile.in
@@ -6,3 +6,5 @@ TESTS_DISABLED += cancellation-points
EXTRA_LDFLAGS := -lpthread
LDFLAGS_cancellation-points := -lrt
+
+CFLAGS_tst-c99 := -std=c99
diff --git a/test/pthread/tst-c99.c b/test/pthread/tst-c99.c
new file mode 100644
index 000000000..3cc91b1b7
--- /dev/null
+++ b/test/pthread/tst-c99.c
@@ -0,0 +1,2 @@
+#include <pthread.h>
+int main(void) { return 0; }