os: replace enum by static constexpr (C++20)

Fixes the build of the nic_router.

Issue #4869
This commit is contained in:
Norman Feske 2023-05-15 17:50:40 +02:00 committed by Christian Helmuth
parent 29079b2ac8
commit 8e32e7a14e

View File

@ -52,7 +52,7 @@ namespace Nic {
*/
struct Nic::Session : Genode::Session
{
enum { QUEUE_SIZE = 1024 };
static constexpr Genode::size_t QUEUE_SIZE = 1024;
/*
* Types used by the client stub code and server implementation