fsync test: Avoid test failure on MacOS X and AIX.
[pspp] / modules / gethrxtime
index 3de2ee4956e4bd7dfde2571a8c9a62bb161e3b16..916bab1fd970dc5d3f067b587e8b4ec2405d5710 100644 (file)
@@ -16,11 +16,18 @@ 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:
 
 Include:
-#include "xtime.h"
+"xtime.h"
+
+Link:
+$(LIB_GETHRXTIME)
 
 License:
 GPL