blob: c78ec28de756242af22b8f68c8a4b6e31f26d788 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 8f47adc3b9085d589e62cb5eb560dd23a703036a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 8 Sep 2018 12:47:49 -0700
4Subject: [PATCH] include iostream for cout
5
6End cout with endl
7
8Fixes
9plugins/dynamic_simulator/thread.cpp:241:3: error: 'cout' was not declared in this scope
10 cout<<"PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is Defined"
11 ^~~~
12
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 plugins/dynamic_simulator/thread.cpp | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20diff --git a/plugins/dynamic_simulator/thread.cpp b/plugins/dynamic_simulator/thread.cpp
21index b971502..61eaf42 100644
22--- a/plugins/dynamic_simulator/thread.cpp
23+++ b/plugins/dynamic_simulator/thread.cpp
24@@ -26,7 +26,7 @@
25 */
26
27 #include "thread.h"
28-#include <stdio.h>
29+#include <iostream>
30 #include <sys/time.h>
31 #include <errno.h>
32
33@@ -238,7 +238,7 @@ cThreadLock::cThreadLock()
34 pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_RECURSIVE );
35 pthread_mutex_init( &m_lock, &attr );
36 pthread_mutexattr_destroy( &attr );
37- cout<<"PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is Defined"
38+ std::cout<<"PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP is Defined"<<std::endl;
39 }
40 #else
41 static pthread_mutex_t lock_tmpl = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;