[gnutls-devel] bugfix for gnutls-3.2.1 on NetBSD

Thomas Klausner wiz at NetBSD.org
Sun Jul 7 16:15:48 CEST 2013


Hi!

I've tried compiling gnutls-3.2.1 on NetBSD-6.99.22/amd64; it fails
building because NetBSD provides clock_gettime() but not
CLOCK_PROCESS_CPUTIME_ID.

The attached patch fixes this.

Cheers,
 Thomas
-------------- next part --------------
$NetBSD$

--- src/benchmark.h.orig	2013-05-25 11:06:37.000000000 +0000
+++ src/benchmark.h
@@ -24,7 +24,7 @@
 # include <windows.h>
 #endif
 
-#if defined(HAVE_CLOCK_GETTIME)
+#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_PROCESS_CPUTIME_ID)
 # undef gettime
 # define gettime(x) clock_gettime(CLOCK_PROCESS_CPUTIME_ID, x)
 #else


More information about the Gnutls-devel mailing list