diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2011-07-19 20:17:09 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2011-07-19 20:17:09 +0000 |
commit | 80012f8bf8032f0c28e4e5ca02d4672370a25137 (patch) | |
tree | ea06d543ffc8e066ccfbaf96a8be8a7ca0e6461a /ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp | |
parent | 10d279d3172a275f5f53fb18d4a0945f589a7224 (diff) | |
download | ATCD-saic_android.tar.gz |
Tue Jul 19 20:15:51 UTC 2011 William R. Otte <wotte@dre.vanderbilt.edu>saic_android
* ace/config-android.h:
* examples/APG/ThreadManagement/Async_Cancel.cpp:
* examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp:
* examples/Service_Configurator/IPC-tests/server/Handle_L_Stream.inl:
* examples/Service_Configurator/IPC-tests/server/Handle_R_Stream.inl:
* examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp:
* examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp:
* include/makeinclude/platform_android.GNU:
* tests/Logging_Strategy_Test.cpp:
* tests/Thread_Attrs_Test.cpp:
Various android fixes.
Diffstat (limited to 'ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp')
-rw-r--r-- | ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp b/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp index d2bcf36cc9e..5fb5b98c492 100644 --- a/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp +++ b/ACE/examples/System_V_IPC/SV_Message_Queues/TMQ_Client.cpp @@ -19,9 +19,14 @@ ACE_TMAIN (int, ACE_TCHAR *[]) ACE_Typed_SV_Message_Queue<Message_Data> msgque (key_t (SRV_KEY)); +#ifndef ACE_LACKS_CUSERID Message_Data msg_data (pid, ACE_OS::cuserid (static_cast<char *> (0)), "did you get this?"); +#else + Message_Data msg_data; + ACE_ERROR ((LM_ERROR, "Error: platform lacks cuserid\n")); +#endif ACE_Typed_SV_Message<Message_Data> send_msg (msg_data, SRV_ID, |