diff options
Diffstat (limited to 'lldb/test')
| -rw-r--r-- | lldb/test/functionalities/thread/thread_specific_break/Makefile | 1 | ||||
| -rw-r--r-- | lldb/test/functionalities/thread/thread_specific_break/main.c | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/functionalities/thread/thread_specific_break/Makefile b/lldb/test/functionalities/thread/thread_specific_break/Makefile index b09a579159d..332ca7c619c 100644 --- a/lldb/test/functionalities/thread/thread_specific_break/Makefile +++ b/lldb/test/functionalities/thread/thread_specific_break/Makefile @@ -1,5 +1,6 @@ LEVEL = ../../../make C_SOURCES := main.c +LD_EXTRAS := -lpthread include $(LEVEL)/Makefile.rules diff --git a/lldb/test/functionalities/thread/thread_specific_break/main.c b/lldb/test/functionalities/thread/thread_specific_break/main.c index ea1bb7e60a6..2123a3121c9 100644 --- a/lldb/test/functionalities/thread/thread_specific_break/main.c +++ b/lldb/test/functionalities/thread/thread_specific_break/main.c @@ -24,14 +24,15 @@ main () pthread_t threads[10]; int thread_value = 0; + int i; - for (int i = 0; i < 10; i++) + for (i = 0; i < 10; i++) { thread_value += 1; pthread_create (&threads[i], NULL, &thread_function, &thread_value); } - for (int i = 0; i < 10; i++) + for (i = 0; i < 10; i++) pthread_join (threads[i], NULL); return 0; |

