diff options
Diffstat (limited to 'ACE/examples/Service_Configurator/IPC-tests/client')
-rw-r--r-- | ACE/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ACE/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp b/ACE/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp index c4b3944b26f..fe572822c3c 100644 --- a/ACE/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp +++ b/ACE/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp @@ -92,7 +92,13 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) -1); char name[ACE_MAX_USERID]; + +#ifndef ACE_LACKS_CUSERID ACE_OS::cuserid (name); +#else + ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("Error: ::cuserid is not supported on this platform\n")), + -1); +#endif if (sd.send (name, ACE_OS::strlen (name) + 1, |