summaryrefslogtreecommitdiff
path: root/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp')
-rw-r--r--ACE/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp b/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
index f5b952ca7a1..d51ac01f923 100644
--- a/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
+++ b/ACE/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp
@@ -158,7 +158,11 @@ CLI_Stream<PR_ST_2>::svc (void)
ACE_OS::fflush (stdout);
time_t t = ACE_OS::time (0L);
+#ifndef ACE_LACKS_CUSERID
ACE_OS::cuserid (login_name);
+#else
+ ACE_ERROR ((LM_ERROR, "Error: cuserid is not supported on this platform"));
+#endif
ACE_OS::sprintf (buf,
"user %s %s",
login_name,