Index: head/games/eboard/files/patch-c++11 =================================================================== --- head/games/eboard/files/patch-c++11 (nonexistent) +++ head/games/eboard/files/patch-c++11 (revision 460006) @@ -0,0 +1,17 @@ +libc++ doesn't like "using namespace std" in C++11 + +network.cc:466:59: error: invalid operands to binary expression ('__bind' and 'int') + if (bind(netsocket,(struct sockaddr *) &sin,sizeof(sin))==-1) { + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ ~~ + +--- network.cc.orig 2008-02-22 15:51:22 UTC ++++ network.cc +@@ -463,7 +463,7 @@ int IncomingConnection::createSocket() { + sin.sin_addr.s_addr = INADDR_ANY; + sin.sin_port = htons(Port); + +- if (bind(netsocket,(struct sockaddr *) &sin,sizeof(sin))==-1) { ++ if (::bind(netsocket,(struct sockaddr *) &sin,sizeof(sin))==-1) { + snprintf(errorMessage,128,_("Unable to bind on port %d."),Port); + return(-1); + } Property changes on: head/games/eboard/files/patch-c++11 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property