$NetBSD: patch-src_zmc_cpp,v 1.3 2020/08/25 16:42:21 gdt Exp $ Use a more appropriate initialisation for a long, and use the definition out of , for portability. --- src/zmc.cpp.orig 2016-02-03 18:40:30.000000000 +0000 +++ src/zmc.cpp @@ -57,7 +57,7 @@ possible, this should run at more or les #include #include -#if defined(__FreeBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) #include #else #include @@ -283,7 +283,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++ )