From 55b45109869eadf91f8f9ad89ed3cc9b91aaf098 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 13 Nov 2022 23:49:38 +0100 Subject: [PATCH] sodium_utils tests: exit() -> _exit() --- test/default/sodium_utils2.c | 5 ++++- test/default/sodium_utils3.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/test/default/sodium_utils2.c b/test/default/sodium_utils2.c index 7f336687..83221f8d 100644 --- a/test/default/sodium_utils2.c +++ b/test/default/sodium_utils2.c @@ -6,6 +6,9 @@ #ifdef HAVE_CATCHABLE_SEGV # include #endif +#ifndef _WIN32 +# include +#endif #define TEST_NAME "sodium_utils2" #include "cmptest.h" @@ -36,7 +39,7 @@ segv_handler(int sig) signal(SIGABRT, SIG_DFL); # endif #endif - exit(0); + _exit(0); } int diff --git a/test/default/sodium_utils3.c b/test/default/sodium_utils3.c index 3bba037a..8eacc44d 100644 --- a/test/default/sodium_utils3.c +++ b/test/default/sodium_utils3.c @@ -6,6 +6,9 @@ #ifdef HAVE_CATCHABLE_SEGV # include #endif +#ifndef _WIN32 +# include +#endif #define TEST_NAME "sodium_utils3" #include "cmptest.h" @@ -32,7 +35,7 @@ segv_handler(int sig) signal(SIGABRT, SIG_DFL); # endif #endif - exit(0); + _exit(0); } int