diff --git a/libcfile/libcfile_file.c b/libcfile/libcfile_file.c index 417417c..ab14c8a 100644 --- a/libcfile/libcfile_file.c +++ b/libcfile/libcfile_file.c @@ -750,6 +750,22 @@ int libcfile_file_open_with_error_code( internal_file->access_flags = access_flags; internal_file->current_offset = 0; +#ifdef __FreeBSD__ + if( libcfile_internal_file_set_block_size( + internal_file, + (size_t) 512, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set block size.", + function ); + + return( -1 ); + } +#endif return( 1 ); }