summaryrefslogtreecommitdiff
path: root/ACE/examples
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-10-15 10:55:13 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-10-15 10:55:13 +0000
commitf33eac389a70fa98df491843bcf68f630f0c2bb0 (patch)
tree15a4c325bed3e5cf744311589c02a339f2155af5 /ACE/examples
parent8f7bbeb9f61c6c57375de638f22723ae604b6e98 (diff)
downloadATCD-f33eac389a70fa98df491843bcf68f630f0c2bb0.tar.gz
ChangeLogTag: Tue Oct 14 16:22:32 UTC 2008 Vladimir Zykov <vzykov@prismtech.com>
Diffstat (limited to 'ACE/examples')
-rw-r--r--ACE/examples/APG/ThreadManagement/Async_Cancel.cpp4
-rw-r--r--ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp b/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp
index 842c7fa2bca..3aac199d793 100644
--- a/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp
+++ b/ACE/examples/APG/ThreadManagement/Async_Cancel.cpp
@@ -23,6 +23,10 @@ public:
// Put this thread in a compute loop.. no
// cancellation points are available.
}
+#if defined (__HP_aCC)
+ // This is only to workaround a warning on HP-UX compiler.
+ return 0;
+#endif /* __HP_aCC */
}
int set_cancel_mode (void)
diff --git a/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h b/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h
index 7c0d81da606..e72d9bb867d 100644
--- a/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h
+++ b/ACE/examples/C++NPv2/AIO_Client_Logging_Daemon.h
@@ -59,6 +59,10 @@ public:
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;
+
protected:
ACE_Asynch_Read_Stream reader_; // Detects connection loss
ACE_Asynch_Write_Stream writer_; // Sends to server