From: Todd C. Miller Date: Thu, 11 Mar 2010 21:57:20 +0000 (-0500) Subject: Add definition of WCOREDUMP for systems without it. This is known X-Git-Tag: SUDO_1_8_0~834 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af62ffe6f102bc2503a83de7a4e28567dc751231;p=sudo Add definition of WCOREDUMP for systems without it. This is known to work on AIX and SunOS 4, but may be incorrect on other systems that lack WCOREDUMP. --- diff --git a/include/compat.h b/include/compat.h index 4641f3b96..1d00fa6e1 100644 --- a/include/compat.h +++ b/include/compat.h @@ -293,4 +293,8 @@ const char *getprogname(void); } while (0) #endif +#ifndef WCOREDUMP +# define WCOREDUMP(x) ((x) & 0x80) +#endif + #endif /* _SUDO_COMPAT_H */