ports/multimedia/zoneminder/files/patch-src_zmu.cpp
Boris Samorodov da9c4172df Zoneminder is an all-in-one GPL'd security and surveillance camera solution.
Fully web-based system for viewing and analyzing security camera feeds.

WWW: http://www.zoneminder.com/
2011-04-29 14:22:37 +00:00

20 lines
740 B
C++

--- src/zmu.cpp.orig 2009-05-08 13:17:10.000000000 +0400
+++ src/zmu.cpp 2011-04-12 15:41:02.696305284 +0400
@@ -18,7 +18,7 @@
//
#include <getopt.h>
-
+#include <iostream>
#include "zm.h"
#include "zm_db.h"
#include "zm_user.h"
@@ -431,7 +431,7 @@ int main( int argc, char *argv[] )
{
char timestamp_str[64] = "None";
if ( timestamp.tv_sec )
- strftime( timestamp_str, sizeof(timestamp_str), "%Y-%m-%d %H:%M:%S", localtime( &timestamp.tv_sec ) );
+ strftime( timestamp_str, sizeof(timestamp_str), "%Y-%m-%d %H:%M:%S", localtime( (time_t *) &timestamp.tv_sec ) );
if ( image_idx == -1 )
printf( "Time of last image capture: %s.%02ld\n", timestamp_str, timestamp.tv_usec/10000 );
else