Work around broken FreeBSD headers
authorMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jan 2014 22:13:51 +0000 (17:13 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 19 Jan 2014 22:13:51 +0000 (17:13 -0500)
It seems that including just pthread.h does not define
clockid_t on these systems.

https://bugzilla.gnome.org/show_bug.cgi?id=722526

glib/deprecated/gthread.h

index 462bb8f..25dfb21 100644 (file)
@@ -120,6 +120,7 @@ void     g_thread_foreach      (GFunc             thread_func,
                                 gpointer          user_data);
 
 #ifndef G_OS_WIN32
+#include <time.h>
 #include <pthread.h>
 #endif