projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Protect call to pthread_condattr_setclock with define.
[platform/upstream/glib.git]
/
glib
/
gthread-posix.c
diff --git
a/glib/gthread-posix.c
b/glib/gthread-posix.c
index
faa6004
..
5d1344d
100644
(file)
--- a/
glib/gthread-posix.c
+++ b/
glib/gthread-posix.c
@@
-636,7
+636,7
@@
g_cond_impl_new (void)
gint status;
pthread_condattr_init (&attr);
-#if
def CLOCK_MONOTONIC
+#if
defined (HAVE_PTHREAD_CONDATTR_SETCLOCK) && defined (CLOCK_MONOTONIC)
pthread_condattr_setclock (&attr, CLOCK_MONOTONIC);
#endif