[Spice-devel] [PATCH spice] HAVE_CLOCK_GETTIME is not used so remove it.

Francois Gouget fgouget at codeweavers.com
Thu Jun 11 10:38:29 PDT 2015


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---

Maybe we should actually use it but currently clock_gettime() uses are 
all over the place and this macro was only used in the client code 
anyway (see 18769714 and 3f3283ee).

 configure.ac | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7a9fc4b..62c714e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,10 +108,7 @@ AC_SUBST(COMMON_CFLAGS)
 AC_CHECK_LIBM
 AC_SUBST(LIBM)
 
-AC_CHECK_LIB(rt, clock_gettime,
-   AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [Defined if we have clock_gettime()])
-   LIBRT=-lrt
-   )
+AC_CHECK_LIB(rt, clock_gettime, LIBRT="-lrt")
 AC_SUBST(LIBRT)
 
 AS_VAR_APPEND([SPICE_NONPKGCONFIG_LIBS], [" -pthread $LIBM $LIBRT"])
-- 
2.1.4



More information about the Spice-devel mailing list