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] 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 */