From 104d5dc71787f27dc092a91025429a0c35d6f5ef Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 3 Nov 2021 16:56:23 +0100 Subject: [PATCH] fix signal management on MacOS --- eo/src/eoSIGContinue.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eo/src/eoSIGContinue.h b/eo/src/eoSIGContinue.h index a84440c72..727c74a01 100644 --- a/eo/src/eoSIGContinue.h +++ b/eo/src/eoSIGContinue.h @@ -32,7 +32,7 @@ #ifndef eoSIGContinue_h #define eoSIGContinue_h -#include +#include #include "eoContinue.h" /** @addtogroup Continuators @@ -51,6 +51,11 @@ template< class EOT> class eoSIGContinue: public eoContinue { public: + +#ifdef __APPLE__ // FIXME there should be a way to be more portable here + using sighandler_t = void (*)(int); +#endif + /// Ctor : installs the signal handler eoSIGContinue(int sig, sighandler_t fct) : _sig(sig), _fct(fct)