aports/testing/restinio/lfs64.patch
2023-04-12 04:16:04 +02:00

21 lines
596 B
Diff

diff --git a/dev/restinio/sendfile_defs_posix.hpp b/dev/restinio/sendfile_defs_posix.hpp
index e531a17..f954d29 100644
--- a/dev/restinio/sendfile_defs_posix.hpp
+++ b/dev/restinio/sendfile_defs_posix.hpp
@@ -75,15 +75,9 @@ get_file_meta( file_descriptor_t fd )
throw exception_t{ "invalid file descriptor" };
}
-#if defined( RESTINIO_FREEBSD_TARGET ) || defined( RESTINIO_MACOS_TARGET )
struct stat file_stat;
const auto fstat_rc = ::fstat( fd, &file_stat );
-#else
- struct stat64 file_stat;
-
- const auto fstat_rc = fstat64( fd, &file_stat );
-#endif
if( 0 != fstat_rc )
{