summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBrian 'Redbeard' Harrington <redbeard@dead-city.org>2021-01-21 19:10:48 -0800
committerBrian 'Redbeard' Harrington <redbeard@dead-city.org>2021-01-21 23:36:48 -0800
commitffaaf8ab9331668c664c0d6084a90a8a29cf3285 (patch)
treeb4a256e61302fc1853ca246415760554b646414b /configure
parent548b363c08875165a018788195e8fd2304c2ce24 (diff)
downloadfio-ffaaf8ab9331668c664c0d6084a90a8a29cf3285.tar.gz
fio-ffaaf8ab9331668c664c0d6084a90a8a29cf3285.tar.bz2
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 <redbeard@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files 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 <sys/time.h>
#include <sys/timerfd.h>
@@ -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"