1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/multimedia/zoneminder/files/patch-src_zm__stream.cpp
Alexander Leidinger a52109fe7d Improve zoneminder ports:
- add patch to make it compile with a recent clang (from -current)
 - add missing fcgiwrap config option to the FreeBSD readme
 - sync pkg-descr and highlight difference between the ports in pkg-descr and COMMENT

Approved by:	maintainer
2018-07-27 18:34:37 +00:00

12 lines
532 B
C++

--- src/zm_stream.cpp.orig 2017-05-09 14:54:48 UTC
+++ src/zm_stream.cpp
@@ -332,7 +332,7 @@ void StreamBase::openComms()
strncpy( loc_addr.sun_path, loc_sock_path, sizeof(loc_addr.sun_path) );
loc_addr.sun_family = AF_UNIX;
- if ( bind( sd, (struct sockaddr *)&loc_addr, strlen(loc_addr.sun_path)+sizeof(loc_addr.sun_family)+1 ) < 0 )
+ if ( ::bind( sd, (struct sockaddr *)&loc_addr, strlen(loc_addr.sun_path)+sizeof(loc_addr.sun_family)+1 ) < 0 )
{
Fatal( "Can't bind: %s", strerror(errno) );
}