[glib] testsuite: include pthread.h in thread testfile



commit 36c47f2a55aacca160c5b93170bd71996070859b
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Sat May 14 01:17:26 2016 +0000

    testsuite: include pthread.h in thread testfile
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766407

 glib/tests/thread.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/thread.c b/glib/tests/thread.c
index 707485e..5447836 100644
--- a/glib/tests/thread.c
+++ b/glib/tests/thread.c
@@ -37,6 +37,10 @@
 #include <sys/resource.h>
 #endif
 
+#ifdef THREADS_POSIX
+#include <pthread.h>
+#endif
+
 static gpointer
 thread1_func (gpointer data)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]