diff --git a/libraries/DataFlash/DataFlash_File.cpp b/libraries/DataFlash/DataFlash_File.cpp index 02adc05be6..a5db45a21c 100644 --- a/libraries/DataFlash/DataFlash_File.cpp +++ b/libraries/DataFlash/DataFlash_File.cpp @@ -648,7 +648,7 @@ void DataFlash_File::_io_timer(void) chunk, ensuring the directory entry is updated after each write. */ -#if CONFIG_HAL_BOARD != HAL_BOARD_AVR_SITL +#if CONFIG_HAL_BOARD != HAL_BOARD_AVR_SITL && CONFIG_HAL_BOARD_SUBTYPE != HAL_BOARD_SUBTYPE_LINUX_NONE ::fsync(_write_fd); #endif BUF_ADVANCEHEAD(_writebuf, nwritten);