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

Issue #4827
This commit is contained in:
Christian Helmuth 2023-05-16 16:37:04 +02:00
parent 97b015b8c7
commit c35714dc81

View File

@ -35,8 +35,9 @@ struct genode_uplink : private Noncopyable, private Interface
Nic::Packet_allocator _packet_alloc { &_alloc };
enum { PACKET_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE };
enum { BUF_SIZE = Uplink::Session::QUEUE_SIZE * PACKET_SIZE };
static constexpr size_t
PACKET_SIZE = Nic::Packet_allocator::DEFAULT_PACKET_SIZE,
BUF_SIZE = Uplink::Session::QUEUE_SIZE * PACKET_SIZE;
Net::Mac_address const _mac_address;