$NetBSD: patch-src_zmc_cpp,v 1.2 2013/03/24 16:47:47 joerg Exp $ Use a more appropriate initialisation for a long, and use the definition out of , for portability. --- src/zmc.cpp.orig 2011-06-21 09:19:11.000000000 +0000 +++ src/zmc.cpp @@ -19,7 +19,7 @@ #include #include -#include +#include #include "zm.h" #include "zm_db.h" @@ -224,7 +224,7 @@ int main( int argc, char *argv[] ) sigprocmask( SIG_BLOCK, &block_set, 0 ); for ( int i = 0; i < n_monitors; i++ ) { - long min_delay = MAXINT; + long min_delay = LONG_MAX; gettimeofday( &now, NULL ); for ( int j = 0; j < n_monitors; j++ )