Skip to content
Prev 37945 / 63424 Next

R-beta_2010-10-02_r53128 fails to compile on FreeBSD

On 10/03/2010 05:58 PM, Prof Brian Ripley wrote:
Only it strikes me that it might be plugging the wrong hole. I.e., that
the real issue is that somehow we're not including sys/wait.h in all
cases. Would it perchance also work to have

#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif

somewhere at the top of the files that use the two macros (sysutils.c
and sys-unix.c AFAICS).

"&& defined(WEXITSTATUS)" probably won't break anything that wasn't
already broken, but it does insert a default definition that could
conflict with the one intended for the OS (that's what include files and
macros are for, after all).