svn commit: r458275 - head/audio/ecasound/files

Jan Beich jbeich at FreeBSD.org
Sat Jan 6 14:19:45 UTC 2018


Author: jbeich
Date: Sat Jan  6 14:19:44 2018
New Revision: 458275
URL: https://svnweb.freebsd.org/changeset/ports/458275

Log:
  audio/ecasound: unbreak build with Clang 6 (C++14 by default)
  
  eca-neteci-server.cpp:179:11: error: assigning to 'int' from incompatible type '__bind<int &,
        sockaddr *, unsigned long>'
      res = bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  eca-neteci-server.cpp:181:11: error: assigning to 'int' from incompatible type '__bind<int &,
        sockaddr *, unsigned long>'
      res = bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  
  Reported by:	antoine (via bug 224669)

Added:
  head/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp   (contents, props changed)

Added: head/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp	Sat Jan  6 14:19:44 2018	(r458275)
@@ -0,0 +1,25 @@
+libc++ doesn't like "using namespace std" in C++11
+
+eca-neteci-server.cpp:179:11: error: assigning to 'int' from incompatible type '__bind<int &,
+      sockaddr *, unsigned long>'
+    res = bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep));
+          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+eca-neteci-server.cpp:181:11: error: assigning to 'int' from incompatible type '__bind<int &,
+      sockaddr *, unsigned long>'
+    res = bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep));
+          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+--- ecasound/eca-neteci-server.cpp.orig	2011-04-05 20:36:01 UTC
++++ ecasound/eca-neteci-server.cpp
+@@ -176,9 +176,9 @@ void ECA_NETECI_SERVER::open_server_socket(void)
+   
+   int res = 0;
+   if (unix_sockets_rep == true) 
+-    res = bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep));
++    res = ::bind(srvfd_rep, (struct sockaddr*)&addr_un_rep, sizeof(addr_un_rep));
+   else
+-    res = bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep));
++    res = ::bind(srvfd_rep, (struct sockaddr*)&addr_in_rep, sizeof(addr_in_rep));
+   
+   if (res == 0) {
+     res = listen(srvfd_rep, 5);


More information about the svn-ports-all mailing list