From: Todd C. Miller Date: Tue, 8 Jun 2010 22:51:20 +0000 (-0400) Subject: Add definition of WCOREDUMP for systems without it. This is known X-Git-Tag: SUDO_1_7_3~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1c8f4c7b9f8aa0c0c05da163a8210fb92cbe86d;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. --HG-- branch : 1.7 --- diff --git a/compat.h b/compat.h index adba862d4..dc1a2aea0 100644 --- a/compat.h +++ b/compat.h @@ -295,4 +295,8 @@ const char *getprogname __P((void)); } while (0) #endif +#ifndef WCOREDUMP +# define WCOREDUMP(x) ((x) & 0x80) +#endif + #endif /* _SUDO_COMPAT_H */