]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Wed, 26 Mar 2025 14:54:48 +0000 (03:54 +1300)
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 51054199a87aabb50a658b46cf0c71bd59a52255..c80ce4d66c8e86598e79b32b33bf28c6d958c5de 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");