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.
This commit is contained in:
Daniel Kochmański 2017-05-19 14:03:34 +02:00
parent ee3d9e584d
commit 104203e1b8

View file

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