]> git.pld-linux.org Git - packages/zoneminder.git/commitdiff
- more c++ related build fixes auto/th/zoneminder-1.28.0-5
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 10 Mar 2018 22:15:40 +0000 (23:15 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 10 Mar 2018 22:15:40 +0000 (23:15 +0100)
- rel 5

zoneminder-build.patch
zoneminder.spec

index 1aca604c1579200806326387018b625e8cab8ada..0ca428a3214db82b881e57b5fbfff19bb171a3ed 100644 (file)
@@ -1,3 +1,13 @@
+--- 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++;
index 88ea992143cf40d998edee9f707904a2f1efa786..014105a5b4d7e5b8b60a5e36c635da0c912a647c 100644 (file)
@@ -9,7 +9,7 @@ Summary:        Zone Minder is a software motion detector with nice WWW GUI
 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
This page took 0.123768 seconds and 4 git commands to generate.