24 lines
960 B
Plaintext
24 lines
960 B
Plaintext
$OpenBSD: patch-vl_c,v 1.22 2010/05/28 00:02:52 fgsch Exp $
|
|
--- vl.c.orig Tue Feb 23 13:54:38 2010
|
|
+++ vl.c Thu May 27 17:04:47 2010
|
|
@@ -652,7 +652,8 @@ static void init_get_clock(void)
|
|
{
|
|
use_rt_clock = 0;
|
|
#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) \
|
|
- || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
|
|
+ || defined(__DragonFly__) || defined(__FreeBSD_kernel__) \
|
|
+ || defined(__OpenBSD__)
|
|
{
|
|
struct timespec ts;
|
|
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
|
|
@@ -665,7 +666,8 @@ static void init_get_clock(void)
|
|
static int64_t get_clock(void)
|
|
{
|
|
#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) \
|
|
- || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
|
|
+ || defined(__DragonFly__) || defined(__FreeBSD_kernel__) \
|
|
+ || defined(__OpenBSD__)
|
|
if (use_rt_clock) {
|
|
struct timespec ts;
|
|
clock_gettime(CLOCK_MONOTONIC, &ts);
|