configure: stop enabling fdatasync on OSX
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sat, 5 Oct 2019 11:04:33 +0000 (12:04 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Sun, 6 Oct 2019 06:33:36 +0000 (07:33 +0100)
commit44f668d7ba3d82c1218951b8c9ed058bedb89e17
tree5bc3c36e2d98955e57a29ff8cf2ca8621bfa6fea
parent13e9c0b09c0c8d892b790aeaf736263dd76f2d2e
configure: stop enabling fdatasync on OSX

Change configure compile probes to fail on implicit declarations. This
(correctly) stops us from enabling fdatasync on OSX which was
problematic because we were actually calling a syscall stub with
arguments different to what was declared in its prototype (see
https://github.com/gbrault/picoc/issues/145#issuecomment-89734655 and
https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/7 ).

Fixes: https://github.com/axboe/fio/issues/834 ("Drop macOS support for
fdatasync")

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
HOWTO
configure
fio.1
os/os-mac.h