freebsd-ports/news/PicMonger/files/patch-InetSocket.cpp
Pav Lucistnik a3cd942cb8 - Unbreak: fix build on 5.X and above
PR:		ports/106201
Submitted by:	Peter Johnson <johnson.peter@gmail.com>
2006-12-02 13:05:53 +00:00

20 lines
614 B
C++

--- InetSocket.cpp.orig Tue Mar 14 23:43:09 2000
+++ InetSocket.cpp Fri Dec 1 22:20:58 2006
@@ -31,7 +31,7 @@
#include <errno.h>
#include <unistd.h>
-InetSocket::InetSocket(int type=SOCK_STREAM, int protocol=0)
+InetSocket::InetSocket(int type, int protocol)
: type_(type), protocol_(protocol)
{
local_fd = socket( PF_INET, type_, protocol_ );
@@ -58,7 +58,7 @@
return result;
}
-int InetSocket::s_bind( int port, const char *dotquad = (const char *)0)
+int InetSocket::s_bind( int port, const char *dotquad)
{
// construct local address to which we want our unnamed socket bound
if (!dotquad)