From 5ac0ab2e0658ba7ec3260fcdd81f1f1e002142c4 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 29 Jul 2022 14:59:37 +0200 Subject: [PATCH] Add missing header for exit call --- DDCore/src/plugins/DetectorCheck.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DDCore/src/plugins/DetectorCheck.cpp b/DDCore/src/plugins/DetectorCheck.cpp index 791f4e298..33007d1d3 100644 --- a/DDCore/src/plugins/DetectorCheck.cpp +++ b/DDCore/src/plugins/DetectorCheck.cpp @@ -25,6 +25,7 @@ // C/C++ include files #include <stdexcept> #include <algorithm> +#include <cstdlib> using namespace std; using namespace dd4hep; @@ -611,7 +612,7 @@ void DetectorCheck::help(int argc,char** argv) { for(int iarg=0; iarg<argc;++iarg) { std::cout << "Argument[" << iarg << "] = " << argv[iarg] << std::endl; } - ::_exit(EINVAL); + ::exit(EINVAL); } /// Action routine to execute the test -- GitLab