summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2003-03-06 23:15:17 +0000
committerSteve Huston <shuston@riverace.com>2003-03-06 23:15:17 +0000
commit56d77994423bb968a64bda90123da657f4736e40 (patch)
tree6d90871f3df34fe6b0b7ecc778de1c0db6474dc2 /examples
parent68be3d4bc5e9138c6ef7278699faf2e4b24fd998 (diff)
downloadATCD-56d77994423bb968a64bda90123da657f4736e40.tar.gz
ChangeLogTag:Thu Mar 6 18:14:21 2003 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
index 813e88d1314..419aaf6c0b1 100644
--- a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
@@ -145,8 +145,15 @@ int
Process_Per_Connection_Logging_Server::run_worker (int, char *argv[])
{
int client_handle_i = atoi (argv[2]);
+ // Some compilers don't like reinterpret_casting an int to an int, so
+ // only do reinterpret_cast on Windows.
+#if defined (ACE_WIN32)
ACE_HANDLE client_handle =
ACE_reinterpret_cast (ACE_HANDLE, client_handle_i);
+#else
+ ACE_HANDLE client_handle =
+ ACE_static_cast (ACE_HANDLE, client_handle_i);
+#endif /* ACE_WIN32 */
ACE_SOCK_Stream client (client_handle);
handle_data (&client);