diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-06-09 18:08:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 18:08:16 +0300 |
commit | 363e89b403dc9a0be77273b6bc22840f2b737310 (patch) | |
tree | 2c242a4adb5aa9c095aa3ae4d1453da1ab045552 /configure.ac | |
parent | e19ce7b4337b9dd9ccd4b99a068212ed01737579 (diff) |
Check the existence of clocked_t (#19915)
Fixes https://github.com/mono/mono/issues/19733
Co-authored-by: fanyang-mono <fanyang-mono@users.noreply.github.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index ad29946527f..c774f361dbb 100644 --- a/configure.ac +++ b/configure.ac @@ -763,7 +763,7 @@ AC_CHECK_HEADERS(elf.h) # for perf jit dump support AC_CHECK_HEADERS(sys/mman.h) if test "x$host_linux" = "xyes" -a x$ac_cv_header_sys_mman_h = xyes -a x$ac_cv_header_elf_h = xyes -a x$ac_cv_header_sys_syscall_h = xyes; then - AC_DEFINE(ENABLE_JIT_DUMP, 1, [Enable jit dump support on Linux]) + AC_DEFINE(ENABLE_JIT_DUMP, 1, [Enable jit dump support on Linux]) fi # for support @@ -2213,6 +2213,9 @@ if test x$host_win32 = xno; then AC_CHECK_FUNC(futimes, [AC_DEFINE(HAVE_FUTIMES, 1, [futimes])]) AC_CHECK_FUNC(futimens, [AC_DEFINE(HAVE_FUTIMENS, 1, [futimens])]) + AC_CHECK_TYPES([clockid_t], [AC_DEFINE(HAVE_CLOCKID_T)], [], + [#include <sys/types.h>]) + dnl hires monotonic clock support AC_SEARCH_LIBS(clock_gettime, rt) AC_CHECK_FUNCS(clock_nanosleep) |