[LTP] [RFC PATCH 2/6] android: lib: Add missing include for tst_safe_pthread.h

Petr Vorel petr.vorel@gmail.com
Sat Sep 2 02:59:22 CEST 2017


Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
Maybe __ANDROID__ or __BIONIC__ should be used to test.
---
 include/tst_safe_pthread.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/tst_safe_pthread.h b/include/tst_safe_pthread.h
index 0242d4c76..0551f063f 100644
--- a/include/tst_safe_pthread.h
+++ b/include/tst_safe_pthread.h
@@ -18,6 +18,10 @@
 #ifndef TST_SAFE_PTHREAD_H__
 #define TST_SAFE_PTHREAD_H__
 
+#ifdef __ANDROID_API__
+#include <pthread.h>
+#endif
+
 /*
  * Macro to use for making functions called only once in
  * multi-threaded tests such as init or cleanup function.
-- 
2.14.0



More information about the ltp mailing list