diff --git a/src/zm.h b/src/zm.h index be2882f8d..a60ab655d 100644 --- a/src/zm.h +++ b/src/zm.h @@ -33,6 +33,8 @@ #include +#include + extern const char* self; #endif // ZM_H diff --git a/src/zm_image_analyser.h b/src/zm_image_analyser.h index c25c1f6c5..b89aa11a9 100644 --- a/src/zm_image_analyser.h +++ b/src/zm_image_analyser.h @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include diff --git a/src/zma.cpp b/src/zma.cpp index 6b1c447ea..da8d619fe 100644 --- a/src/zma.cpp +++ b/src/zma.cpp @@ -72,7 +72,7 @@ int main( int argc, char *argv[] ) Usage(); break; case 'v': - cout << ZM_VERSION << "\n"; + std::cout << ZM_VERSION << "\n"; exit(0); default: //fprintf( stderr, "?? getopt returned character code 0%o ??\n", c ); diff --git a/src/zmc.cpp b/src/zmc.cpp index 696e99527..a1c901267 100644 --- a/src/zmc.cpp +++ b/src/zmc.cpp @@ -117,7 +117,7 @@ int main( int argc, char *argv[] ) Usage(); break; case 'v': - cout << ZM_VERSION << "\n"; + std::cout << ZM_VERSION << "\n"; exit(0); default: //fprintf( stderr, "?? getopt returned character code 0%o ??\n", c ); diff --git a/src/zmf.cpp b/src/zmf.cpp index 7fa4b2b88..178ddf2b5 100644 --- a/src/zmf.cpp +++ b/src/zmf.cpp @@ -140,7 +140,7 @@ int main( int argc, char *argv[] ) Usage(); break; case 'v': - cout << ZM_VERSION << "\n"; + std::cout << ZM_VERSION << "\n"; exit(0); default: //fprintf( stderr, "?? getopt returned character code 0%o ??\n", c ); diff --git a/src/zmstreamer.cpp b/src/zmstreamer.cpp index fe47c773d..41ae138f1 100644 --- a/src/zmstreamer.cpp +++ b/src/zmstreamer.cpp @@ -104,7 +104,7 @@ int main(int argc, char** argv) { printf("-v : This installed version of ZoneMinder\n"); return EXIT_SUCCESS; case 'v': - cout << ZM_VERSION << "\n"; + std::cout << ZM_VERSION << "\n"; exit(0); } }