summaryrefslogtreecommitdiff
path: root/devel/glib2/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2006-09-08 09:32:57 +0000
committerjoerg <joerg>2006-09-08 09:32:57 +0000
commit17c7247a8b1212595c2d001ad68b49229a41d325 (patch)
treeb88133b48984575db2d5dc1488e781d5bae57896 /devel/glib2/patches
parentd4e92a7afabb194a0afd09bd4fb248e7648a5d60 (diff)
downloadpkgsrc-17c7247a8b1212595c2d001ad68b49229a41d325.tar.gz
Force monotonic clock on DragonFly to prevent build from failing.
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r--devel/glib2/patches/patch-ai22
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/glib2/patches/patch-ai b/devel/glib2/patches/patch-ai
new file mode 100644
index 00000000000..8d143e7a772
--- /dev/null
+++ b/devel/glib2/patches/patch-ai
@@ -0,0 +1,22 @@
+$NetBSD: patch-ai,v 1.7 2006/09/08 09:32:57 joerg Exp $
+
+--- glib/gtimer.c.orig 2006-09-08 09:11:08.000000000 +0000
++++ glib/gtimer.c
+@@ -91,12 +91,17 @@ init_posix_clock (void)
+ if (!initialized)
+ {
+ initialized = TRUE;
++#if defined(__DragonFly__)
++ /* DragonFly has a monotonic clock, but not the define or sysconf support */
++ posix_clock = CLOCK_MONOTONIC;
++#else
+ #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK >= 0
+ if (sysconf (_SC_MONOTONIC_CLOCK) >= 0)
+ posix_clock = CLOCK_MONOTONIC;
+ else
+ #endif
+ posix_clock = CLOCK_REALTIME;
++#endif
+ }
+ }
+ #endif