Hi
To compile with the Sun Studio 11 compilers on Solaris 10 on a SPARC I
had to do the following changes to make plib compile cleanly.
When I run configure, the flag "-Dsocklen_t=int" is added to my
compile line for all files. Hence I have to undefine it in 2 files to
get them to compile properly since socklen_t is defined as a typedef
of "uint32_t" in those files.
Regards,
Vikas
Index: src/net/netMessage.h
===================================================================
--- src/net/netMessage.h (revision 2106)
+++ src/net/netMessage.h (working copy)
@@ -43,6 +43,9 @@
#include "netBuffer.h"
#ifndef UL_MSVC
+#ifdef socklen_t
+#undef socklen_t
+#endif
#include <netinet/in.h> // ntohs() etc prototypes
#endif
Index: src/net/netChat.cxx
===================================================================
--- src/net/netChat.cxx (revision 2106)
+++ src/net/netChat.cxx (working copy)
@@ -63,7 +63,7 @@
if (needle && *needle)
{
const char* data = haystack.getData();
- char* ptr = strstr(data,needle);
+ char* ptr = (char*)strstr(data,needle);
if (ptr != NULL)
return(ptr-data);
}Index: src/net/netSocket.cxx
===================================================================
--- src/net/netSocket.cxx (revision 2106)
+++ src/net/netSocket.cxx (working copy)
@@ -29,6 +29,10 @@
# include <netinet/in.h>
#endif
+#ifdef socklen_t
+#undef socklen_t
+#endif
+
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
Index: src/util/ul.h
===================================================================
--- src/util/ul.h (revision 2106)
+++ src/util/ul.h (working copy)
@@ -87,6 +87,7 @@
#elif defined(SOLARIS) || defined(sun)
#define UL_SOLARIS 1
+#define UL_BB 1
#elif defined(hpux)
|