From 104203e1b89381485d666ee7741ff24fee510415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Fri, 19 May 2017 14:03:34 +0200 Subject: [PATCH 1/3] unixsys: waitpid: fake WCONTINUED and WIFCONTINUED if not present On some platforms with not finished POSIX support (like some old BSD) these defines / macros are not present. Fake them for compatibility. --- src/h/internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/h/internal.h b/src/h/internal.h index f7209c22b..8ce37fa3b 100755 --- a/src/h/internal.h +++ b/src/h/internal.h @@ -527,6 +527,18 @@ extern void ecl_interrupt_process(cl_object process, cl_object function); /* unixsys.d */ +/* Some old BSD systems doesn't have WCONTINUED / WIFCONTINUED */ + +#ifndef ECL_MS_WINDOWS_HOST +# ifndef WCONTINUED +# define WCONTINUED 0 +# endif + +# ifndef WIFCONTINUED +# define WIFCONTINUED() 0 +# endif +#endif /* ECL_MS_WINDOWS_HOST */ + /* * Fake several ISO C99 mathematical functions if not available */ From c487341ad6e76623bf6444dd8de064c422a7be3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Fri, 19 May 2017 15:32:48 +0200 Subject: [PATCH 2/3] unixsys: waitpid: fix fake macro --- src/h/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h/internal.h b/src/h/internal.h index 8ce37fa3b..179905df8 100755 --- a/src/h/internal.h +++ b/src/h/internal.h @@ -535,7 +535,7 @@ extern void ecl_interrupt_process(cl_object process, cl_object function); # endif # ifndef WIFCONTINUED -# define WIFCONTINUED() 0 +# define WIFCONTINUED(x) 0 # endif #endif /* ECL_MS_WINDOWS_HOST */ From 14320c2e27413784a760d269847e80ff14ae8600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kochma=C5=84ski?= Date: Fri, 19 May 2017 15:49:39 +0200 Subject: [PATCH 3/3] cosmetic: comment --- src/h/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h/internal.h b/src/h/internal.h index 179905df8..30445d42b 100755 --- a/src/h/internal.h +++ b/src/h/internal.h @@ -527,7 +527,7 @@ extern void ecl_interrupt_process(cl_object process, cl_object function); /* unixsys.d */ -/* Some old BSD systems doesn't have WCONTINUED / WIFCONTINUED */ +/* Some old BSD systems don't have WCONTINUED / WIFCONTINUED */ #ifndef ECL_MS_WINDOWS_HOST # ifndef WCONTINUED