aboutsummaryrefslogtreecommitdiff
path: root/games/eboard
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-01-26 15:16:30 +0000
committerJan Beich <jbeich@FreeBSD.org>2018-01-26 15:16:30 +0000
commit9d652e8151687f4f117037d53cc19d8f3085e40d (patch)
tree20b577a212c36b7874396fb0f8b10eea3c19152e /games/eboard
parent287f7eacba6afb8bb14c5fa0e8ab3147a70aa4c7 (diff)
downloadports-9d652e8151687f4f117037d53cc19d8f3085e40d.tar.gz
ports-9d652e8151687f4f117037d53cc19d8f3085e40d.zip
Notes
Diffstat (limited to 'games/eboard')
-rw-r--r--games/eboard/files/patch-c++1117
1 files changed, 17 insertions, 0 deletions
diff --git a/games/eboard/files/patch-c++11 b/games/eboard/files/patch-c++11
new file mode 100644
index 000000000000..68b47b914a39
--- /dev/null
+++ b/games/eboard/files/patch-c++11
@@ -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<int &, sockaddr *, unsigned long>' 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);
+ }