Enable NativeFileStream under Linux by default

It is supposed to work and libstdc++'s __gnu_cxx::stdio_filebuf is
available anyways. Maybe sendfile() can be used at some point with
this to speed up Tag Editor.
This commit is contained in:
Martchus 2019-08-14 01:15:21 +02:00
parent 3947504a63
commit 014127e4c4
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ use_iconv(AUTO_LINKAGE REQUIRED)
# configure use of native file buffer and its backend implementation if enabled
set(USE_NATIVE_FILE_BUFFER_BY_DEFAULT OFF)
if (WIN32 OR ANDROID)
if (WIN32 OR ANDROID OR (UNIX AND NOT APPLE))
set(USE_NATIVE_FILE_BUFFER_BY_DEFAULT ON)
endif ()
option(USE_NATIVE_FILE_BUFFER "enables use of native file buffer, affects ABI" ${USE_NATIVE_FILE_BUFFER_BY_DEFAULT})