ports/www/dfileserver/files/patch-src_DashFileServer.cxx
Rodrigo Osorio 512c79437f Fix C++ issues for 12.0
- Unixify the files using dos2unix
- Add patches to fix the C++ issues in the code
- Dump PORTREVISION
2018-07-03 09:55:25 +00:00

13 lines
509 B
C++

--- src/DashFileServer.cxx.orig 2018-07-02 11:55:29 UTC
+++ src/DashFileServer.cxx
@@ -218,8 +218,8 @@ int InitalizeNetwork ( int ArgPort, int
memset(&(ListenAddr.sin_zero), '\0', 8);
// Bind the socket to the listening network struct.
- if ( bind( NetworkSocket, (struct sockaddr *)&ListenAddr,
- sizeof( struct sockaddr ) ) == -1 )
+ if ( ::bind( NetworkSocket, (struct sockaddr *)&ListenAddr,
+ sizeof( struct sockaddr ) ) == -1)
{
perror("InitalizeNetwork -- bind()");
return -1;