[glib] Work around broken FreeBSD headers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Work around broken FreeBSD headers
- Date: Sun, 19 Jan 2014 22:15:11 +0000 (UTC)
commit 2a3ee7ceafad19ecc2bfe435a95226f74d64952f
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 19 17:13:51 2014 -0500
Work around broken FreeBSD headers
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 | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/glib/deprecated/gthread.h b/glib/deprecated/gthread.h
index 462bb8f..25dfb21 100644
--- a/glib/deprecated/gthread.h
+++ b/glib/deprecated/gthread.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]