setrlimit setproctitle seteuid setreuid setegid setresgid \
strtoull strtoll strtouq strtoq \
setpriority quotactl getmntent kqueue kevent backtrace_symbols \
- walkcontext dirfd clearenv malloc_usable_size clock_gettime)
+ walkcontext dirfd clearenv malloc_usable_size)
+
+AC_CHECK_LIB(rt, clock_gettime, [
+ AC_DEFINE(HAVE_CLOCK_GETTIME,, Define if you have the clock_gettime function)
+ LIBS="-lrt"
+], [
+ # OpenBSD
+ AC_CHECK_FUNCS(clock_gettime)
+])
dnl strtoimax and strtoumax are macros in HP-UX, so inttypes.h must be included
dnl Link instead of just compiling since there's something wrong with Tru64