]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Portability: change Ipc::Port::listen to doListen()
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 8 Oct 2012 07:20:51 +0000 (01:20 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 8 Oct 2012 07:20:51 +0000 (01:20 -0600)
listen() clashes with POSIX function of the same name.
Some systems (ie MinGW) define it as a macro wrapper.

src/ipc/Port.cc
src/ipc/Port.h

index 21807b9cba0e1d63937b2c83ab4219ad014f0349..720625f742d75560d059b533c08db1fe7a2aa158 100644 (file)
@@ -21,10 +21,10 @@ Ipc::Port::Port(const String& aListenAddr):
 void Ipc::Port::start()
 {
     UdsOp::start();
-    listen();
+    doListen();
 }
 
-void Ipc::Port::listen()
+void Ipc::Port::doListen()
 {
     debugs(54, 6, HERE);
     buf.prepForReading();
@@ -60,5 +60,5 @@ void Ipc::Port::noteRead(const CommIoCbParams& params)
     // TODO: if there was a fatal error on our socket, close the socket before
     // trying to listen again and print a level-1 error message.
 
-    listen();
+    doListen();
 }
index e6d2d2cdb099faf64e7eb237312127c3b3f9eb63..9282f2385f30f218abb4d96cc4d9c36ce6f5e681 100644 (file)
@@ -25,7 +25,7 @@ protected:
     virtual bool doneAll() const; // UdsOp (AsyncJob) API
 
     /// read the next incoming message
-    void listen();
+    void doListen();
 
     /// handle IPC message just read
     virtual void receive(const TypedMsgHdr& message) = 0;