diff options
author | Carlin <cb@viennan.net> | 2015-04-09 03:57:07 +1200 |
---|---|---|
committer | Carlin <cb@viennan.net> | 2015-04-09 03:57:07 +1200 |
commit | 7db063e93d45ea8f12cf79b477a88c89dd3af89b (patch) | |
tree | 5c1de9aaa018f2487af677240bb68530f2a34a84 /configure.ac | |
parent | 083bfdd25a19f157da69eb23a9eb3e3b8570ea35 (diff) |
do not check for librt on OpenBSD
clock_gettime is in OpenBSD's libc
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e43e8f78..a100f344 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -472,7 +472,7 @@ AC_C_BIGENDIAN | |||
472 | # Checks for library functions. | 472 | # Checks for library functions. |
473 | AC_FUNC_FORK | 473 | AC_FUNC_FORK |
474 | AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc]) | 474 | AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc]) |
475 | if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes") && (test "x$DISABLE_RT" != "xyes"); then | 475 | if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes") && (test "x${host_os#*openbsd}" == "x$host_os") && (test "x$DISABLE_RT" != "xyes"); then |
476 | AC_CHECK_LIB(rt, clock_gettime, | 476 | AC_CHECK_LIB(rt, clock_gettime, |
477 | [ | 477 | [ |
478 | RT_LIBS="-lrt" | 478 | RT_LIBS="-lrt" |