+--- ZoneMinder-1.28.0/src/zm_comms.h 2014-10-18 22:23:13.000000000 +0200
++++ ZoneMinder-1.28.0-cxx/src/zm_comms.h 2018-03-10 23:09:25.399824067 +0100
+@@ -26,6 +26,7 @@
+ #include <netdb.h>
+ #include <errno.h>
+ #include <sys/un.h>
++#include <sys/uio.h>
+
+ #include <set>
+ #include <vector>
--- ZoneMinder-1.24.2/src/zm_utils.cpp.org 2009-07-12 19:45:34.387460575 +0200
+++ ZoneMinder-1.24.2/src/zm_utils.cpp 2009-07-12 19:46:00.454902859 +0200
@@ -21,6 +21,7 @@
{
--- ZoneMinder-1.28.0/src/zm_image.cpp.orig 2014-10-18 22:23:13.000000000 +0200
+++ ZoneMinder-1.28.0/src/zm_image.cpp 2017-04-14 18:25:49.847052104 +0200
+@@ -1562,7 +1562,7 @@
+ {
+ uint8_t *psrc = images[j]->buffer+c;
+
+- if ( (unsigned)abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
++ if ( (unsigned)std::abs((int)(*psrc)-(int)RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) )
+ {
+ count++;
+ }
@@ -1668,7 +1668,7 @@ const Coord Image::centreCoord( const ch
line = text+index;
line_no++;
Summary(pl.UTF-8): Zone Minder - programowy wykrywacz ruchu z miłym GUI przez WWW
Name: zoneminder
Version: 1.28.0
-Release: 4
+Release: 5
License: GPL v2
Group: Applications/Graphics
Source0: https://github.com/ZoneMinder/ZoneMinder/archive/v%{version}.tar.gz