svn commit: r478159 - head/devel/kaptain/files

Tobias Kortkamp tobik at FreeBSD.org
Sun Aug 26 18:53:29 UTC 2018


Author: tobik
Date: Sun Aug 26 18:53:28 2018
New Revision: 478159
URL: https://svnweb.freebsd.org/changeset/ports/478159

Log:
  devel/kaptain: Fix build with Clang 6
  
  communication.cpp:108:32: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned int>' and 'int')
                            sizeof (struct sockaddr)) == -1)
                            ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
  
  http://beefy11.nyi.freebsd.org/data/head-i386-default/p477696_s338122/logs/errors/kaptain-0.73.log

Added:
  head/devel/kaptain/files/patch-communication.cpp   (contents, props changed)

Added: head/devel/kaptain/files/patch-communication.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/kaptain/files/patch-communication.cpp	Sun Aug 26 18:53:28 2018	(r478159)
@@ -0,0 +1,15 @@
+communication.cpp:108:32: error: invalid operands to binary expression ('__bind<int &, sockaddr *, unsigned int>' and 'int')
+                          sizeof (struct sockaddr)) == -1)
+                          ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
+
+--- communication.cpp.orig	2018-08-26 18:50:21 UTC
++++ communication.cpp
+@@ -104,7 +104,7 @@ bool Communicator::setup_socket_server(string port_str
+   memset(&(my_addr.sin_zero), '\0', 8); // zero the rest of the struct
+ 
+   /* bind */
+-  if (bind(socket_fd, (struct sockaddr *)&my_addr, 
++  if (::bind(socket_fd, (struct sockaddr *)&my_addr, 
+ 			  sizeof (struct sockaddr)) == -1)
+ 	 {
+ 		MAKE_ERROR(string("bind: ")+string(strerror(errno))+string(".\n"));


More information about the svn-ports-all mailing list