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-Tag: SQUID_6_14~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60d5cded01b79645edcd3116fbed2f711e34ac48;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 51054199a8..c80ce4d66c 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");