forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-misc/nx: fix compilation with clang
Also fix ```VariableOrderWrong``` for the ```${S}``` variable Link: ArcticaProject/nx-libs#1044 Link: https://trac.macports.org/ticket/71014 Closes: https://bugs.gentoo.org/930440 Signed-off-by: Cristian Othón Martínez Vera <[email protected]>
- Loading branch information
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Fix: | ||
|
||
Loop.cpp:4224:34: error: invalid operands to binary expression ('__bind<int &, sockaddr *&, unsigned int &>' and 'int') | ||
|
||
https://github.com/ArcticaProject/nx-libs/issues/1044 | ||
https://bugs.gentoo.org/930440 | ||
--- a/nxcomp/src/Loop.cpp | ||
+++ b/nxcomp/src/Loop.cpp | ||
@@ -4221,7 +4221,7 @@ | ||
goto SetupSocketError; | ||
} | ||
|
||
- if (bind(newFD, addr, addrlen) == -1) | ||
+ if (::bind(newFD, addr, addrlen) == -1) | ||
{ | ||
nxfatal << "Loop: PANIC! Call to bind failed for " << label | ||
<< ". Error is " << EGET() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters