mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 13:22:21 +01:00
21 lines
596 B
Diff
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 )
|
|
{
|