diff options
author | jbeich <jbeich@FreeBSD.org> | 2018-01-06 22:19:44 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2018-01-06 22:19:44 +0800 |
commit | 48e7c5f29452fb44eb8ead0c29f03a882a7c4320 (patch) | |
tree | 6e49f80f245caa43492e5118b18f438b3c49658c /audio | |
parent | c08666855bfc45438c481e1a9f4d2a1cbadfa277 (diff) | |
download | freebsd-ports-gnome-48e7c5f29452fb44eb8ead0c29f03a882a7c4320.tar.gz freebsd-ports-gnome-48e7c5f29452fb44eb8ead0c29f03a882a7c4320.tar.zst freebsd-ports-gnome-48e7c5f29452fb44eb8ead0c29f03a882a7c4320.zip |
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)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp b/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp new file mode 100644 index 000000000000..5fee6b3642a1 --- /dev/null +++ b/audio/ecasound/files/patch-ecasound_eca-neteci-server.cpp @@ -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); |