Work around declaration collisions on Minix.
[gnulib.git] / modules / gethrxtime
index b621e18..916bab1 100644 (file)
@@ -10,17 +10,24 @@ m4/longlong.m4
 
 Depends-on:
 clock-time
-gettime
 extensions
+gettime
+sys_time
 
 configure.ac:
 gl_GETHRXTIME
+if test $ac_cv_have_decl_gethrtime = no || test $gl_cv_arithmetic_hrtime_t = no; then
+  AC_LIBOBJ([gethrxtime])
+  gl_PREREQ_GETHRXTIME
+fi
 
 Makefile.am:
-EXTRA_DIST += gethrxtime.h xtime.h
 
 Include:
-#include "xtime.h"
+"xtime.h"
+
+Link:
+$(LIB_GETHRXTIME)
 
 License:
 GPL