]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Mem::Segment::open() stub to fix build without shm_open() (#2016)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Fri, 14 Mar 2025 15:55:44 +0000 (15:55 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 14 Mar 2025 15:59:53 +0000 (15:59 +0000)
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)

src/ipc/mem/Segment.cc

index f73e00016e7a585140a49c3c3c5612be5b7e5188..259f0a460da1beafe39216673f7b2e2a70d16a47 100644 (file)
@@ -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");