[LTP] [PATCH] pthread_cond_init/s-c.c: Add the lose ifndef line
Zou Wei
zou_wei@huawei.com
Mon Mar 16 03:58:35 CET 2020
pthread_cond_init/s-c.c testcase lose a #ifndef line, fix it
Reported-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
testcases/open_posix_testsuite/stress/threads/pthread_cond_init/s-c.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/s-c.c b/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/s-c.c
index 6a5c70a..8d18484 100644
--- a/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/s-c.c
+++ b/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/s-c.c
@@ -80,6 +80,7 @@
/*********************************** Test case *****************************************/
/********************************************************************************************/
+#ifndef WITHOUT_XOPEN
typedef struct _teststruct {
pthread_cond_t cnd[10 * SCALABILITY_FACTOR];
pthread_condattr_t ca[4];
--
2.6.2
More information about the ltp
mailing list