summaryrefslogtreecommitdiff
path: root/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h')
-rw-r--r--ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h b/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h
index e72d9bb867d..b85feebf9de 100644
--- a/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h
+++ b/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h
@@ -55,13 +55,15 @@ public:
virtual int put (ACE_Message_Block *, ACE_Time_Value * = 0);
// Hook method called when server connection is established.
- using ACE_Service_Handler::open;
virtual void open (ACE_HANDLE new_handle,
ACE_Message_Block &message_block);
- // This is to make happy a compiler on HP-UX which complains
- // that the 'open' above hides "int ACE_Task_Base::open(void *)"
- using ACE_Task<ACE_NULL_SYNCH>::open;
+ // A trivial implementation that is needed to suppress compile
+ // warnings/errors.
+ virtual int open (void *args)
+ {
+ return ACE_Task<ACE_NULL_SYNCH>::open (args);
+ }
protected:
ACE_Asynch_Read_Stream reader_; // Detects connection loss