summaryrefslogtreecommitdiff
path: root/x11-servers/xorg-server/files/patch-os-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-servers/xorg-server/files/patch-os-utils.c')
-rw-r--r--x11-servers/xorg-server/files/patch-os-utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/x11-servers/xorg-server/files/patch-os-utils.c b/x11-servers/xorg-server/files/patch-os-utils.c
new file mode 100644
index 000000000000..a5509b86539a
--- /dev/null
+++ b/x11-servers/xorg-server/files/patch-os-utils.c
@@ -0,0 +1,14 @@
+--- os/utils.c.orig 2007-08-23 15:04:55.000000000 -0400
++++ os/utils.c 2008-02-29 13:11:01.000000000 -0500
+@@ -525,7 +525,11 @@
+
+ #ifdef MONOTONIC_CLOCK
+ struct timespec tp;
++#if defined(__FreeBSD__) && defined(CLOCK_MONOTONIC_FAST)
++ if (clock_gettime(CLOCK_MONOTONIC_FAST, &tp) == 0)
++#else
+ if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
++#endif
+ return (tp.tv_sec * 1000) + (tp.tv_nsec / 1000000L);
+ #endif
+