]> granicus.if.org Git - sudo/commitdiff
Add definition of WCOREDUMP for systems without it. This is known
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Jun 2010 22:51:20 +0000 (18:51 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 8 Jun 2010 22:51:20 +0000 (18:51 -0400)
to work on AIX and SunOS 4, but may be incorrect on other systems
that lack WCOREDUMP.

--HG--
branch : 1.7

compat.h

index adba862d4fa20ca0fd9af096aee5e6b3653bbbcb..dc1a2aea001885d07e0fae6194e55569f1429f10 100644 (file)
--- 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 */