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
commit210f587c3f413a0fd24480b82b1649ce2ddef5c9 (patch)
tree6d90871f3df34fe6b0b7ecc778de1c0db6474dc2 /examples
parente033aa14a4cff3c39fcf71f7681e26f363686e1e (diff)
downloadATCD-210f587c3f413a0fd24480b82b1649ce2ddef5c9.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);