From ffaaf8ab9331668c664c0d6084a90a8a29cf3285 Mon Sep 17 00:00:00 2001 From: Brian 'Redbeard' Harrington Date: Thu, 21 Jan 2021 19:10:48 -0800 Subject: [PATCH] configure: ESX does not have timerfd support Running fio on an ESX host fails due to the lack of support for file descriptor based notifications of timer expiration. This change bypasses patch 696378af added to increase timer accuracy. Signed-off-by: Brian 'Redbeard' Harrington --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 1306f1b3..e6e33d7f 100755 --- a/configure +++ b/configure @@ -2695,6 +2695,7 @@ print_config "Windows PDB generation" "$pdb" ########################################## # check for timerfd support timerfd_create="no" +if test "$esx" != "yes" ; then cat > $TMPC << EOF #include #include @@ -2704,8 +2705,9 @@ int main(int argc, char **argv) return timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); } EOF -if compile_prog "" "" "timerfd_create"; then - timerfd_create="yes" + if compile_prog "" "" "timerfd_create"; then + timerfd_create="yes" + fi fi print_config "timerfd_create" "$timerfd_create" -- 2.25.1