vfs_tap: fix build errors with -std=gnu++20

Fixes #4882
This commit is contained in:
Christian Prochaska 2023-05-16 07:15:46 +02:00 committed by Christian Helmuth
parent 1f2dc78feb
commit 74734b7dd9
2 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,8 @@ class Vfs::Nic_file_system::Nic_vfs_handle : public Single_vfs_handle
using Read_result = File_io_service::Read_result; using Read_result = File_io_service::Read_result;
using Write_result = File_io_service::Write_result; using Write_result = File_io_service::Write_result;
enum { PKT_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE }; static constexpr size_t PKT_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE;
enum { BUF_SIZE = Uplink::Session::QUEUE_SIZE * PKT_SIZE }; static constexpr size_t BUF_SIZE = Uplink::Session::QUEUE_SIZE * PKT_SIZE;
Genode::Env &_env; Genode::Env &_env;
Vfs::Env::User &_vfs_user; Vfs::Env::User &_vfs_user;

View File

@ -37,8 +37,8 @@ class Genode::Uplink_client_base : Noncopyable
enum class Write_result { WRITE_SUCCEEDED, WRITE_FAILED }; enum class Write_result { WRITE_SUCCEEDED, WRITE_FAILED };
enum { PKT_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE }; static constexpr size_t PKT_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE;
enum { BUF_SIZE = Uplink::Session::QUEUE_SIZE * PKT_SIZE }; static constexpr size_t BUF_SIZE = Uplink::Session::QUEUE_SIZE * PKT_SIZE;
Env &_env; Env &_env;
Vfs::Env::User &_vfs_user; Vfs::Env::User &_vfs_user;