From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Fri, 14 Mar 2025 15:55:44 +0000 (+0000) Subject: Fix Mem::Segment::open() stub to fix build without shm_open() (#2016) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4efe42f9f914fce0062e9780b776dec5c27faa4b;p=thirdparty%2Fsquid.git Fix Mem::Segment::open() stub to fix build without shm_open() (#2016) When the environment does not HAVE_SHM, Ipc::Mem::Segment::open() method definition does not match its declaration. Make it match. src/ipc/mem/Segment.cc:346:1: error: no declaration matches void Ipc::Mem::Segment::open() src/ipc/mem/Segment.h:37:10: note: candidate is: void Ipc::Mem::Segment::open(bool) --- diff --git a/src/ipc/mem/Segment.cc b/src/ipc/mem/Segment.cc index f73e00016e..259f0a460d 100644 --- a/src/ipc/mem/Segment.cc +++ b/src/ipc/mem/Segment.cc @@ -343,7 +343,7 @@ Ipc::Mem::Segment::create(const off_t aSize) } void -Ipc::Mem::Segment::open() +Ipc::Mem::Segment::open(bool) { assert(!theMem); checkSupport("Fake segment open");