0caefd3bc6
Notes: sipxportlib contains numerous cases of casting a pointer to an int. Gcc 4.1 does not like this on amd64 systems. I have silenced the compilation error by first typecasting through a uintptr_t. This does not fix any underlying problems, but at least the code compiles. Approved by: maintainer
25 lines
915 B
C++
25 lines
915 B
C++
--- src/os/OsStunAgentTask.cpp.orig Sat Apr 7 19:49:56 2007
|
|
+++ src/os/OsStunAgentTask.cpp Sat Apr 7 19:57:37 2007
|
|
@@ -9,6 +9,7 @@
|
|
|
|
// SYSTEM INCLUDES
|
|
#include <assert.h>
|
|
+#include <stdint.h>
|
|
|
|
// APPLICATION INCLUDES
|
|
#include "os/OsStunAgentTask.h"
|
|
@@ -374,12 +375,12 @@
|
|
pQueuedEvent = (OsQueuedEvent*) pTimer->getNotifier() ;
|
|
if (pQueuedEvent)
|
|
{
|
|
- pQueuedEvent->setUserData((int) pSocket) ;
|
|
+ pQueuedEvent->setUserData((int) ((uintptr_t)pSocket)) ;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
- pTimer = new OsTimer(getMessageQueue(), (int) pSocket) ;
|
|
+ pTimer = new OsTimer(getMessageQueue(), (int) ((uintptr_t)pSocket)) ;
|
|
pQueuedEvent = (OsQueuedEvent*)pTimer->getNotifier();
|
|
}
|
|
|