| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/audio/ecasound/files/ |
Upload File : |
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);