projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d102cf2
)
Work around broken FreeBSD headers
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 19 Jan 2014 22:13:51 +0000
(17:13 -0500)
committer
Matthias 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
patch
|
blob
|
history
diff --git
a/glib/deprecated/gthread.h
b/glib/deprecated/gthread.h
index
462bb8f
..
25dfb21
100644
(file)
--- 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