This also fixes an issue with regards to HAVE_FDATASYNC:
src/buffer/katesecuretextbuffer.cpp:157:5:
warning: 'HAVE_FDATASYNC' is not defined, evaluates to 0 [-Wundef]
#if HAVE_FDATASYNC
^
> The code path with fdatasync() was never enabled in that file prior
to this patch