diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-13 18:53:06 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-13 18:53:06 +0000 |
commit | 30752ce2dc112ae49858039ed29411aa1f740a67 (patch) | |
tree | 46bd4f90c90a48b8780392e70f4e6d84c5e2b47e /examples/Service_Configurator | |
parent | 2bfd93c2f5e15e0c495d716984044acb0a684ef1 (diff) | |
download | ATCD-30752ce2dc112ae49858039ed29411aa1f740a67.tar.gz |
Added definition of L_cuserid for Win32.
Diffstat (limited to 'examples/Service_Configurator')
-rw-r--r-- | examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp b/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp index 8ba287f2af3..c4102aa31f9 100644 --- a/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp +++ b/examples/Service_Configurator/IPC-tests/server/Handle_Thr_Stream.cpp @@ -21,6 +21,10 @@ #define PR_ST_1 ACE_PEER_STREAM_1 #define PR_ST_2 ACE_PEER_STREAM_2 +#if defined (ACE_WIN32) +#define L_cuserid 32 +#endif /* ACE_WIN32 */ + template <class SH, PR_AC_1> Handle_Thr_Acceptor<SH, PR_AC_2>::~Handle_Thr_Acceptor (void) { @@ -147,7 +151,7 @@ CLI_Stream<PR_ST_2>::svc (void) ACE_OS::fflush (stdout); time_t t = ACE_OS::time (0L); - ACE_OS::cuserid (login_name); + ACE_OS::cuserid (login_name, L_cuserid); ACE_OS::sprintf (buf, "user %s %s", login_name, ACE_OS::ctime ((const time_t *) &t)); |