]> granicus.if.org Git - sudo/commitdiff
Add definition of WCOREDUMP for systems without it. This is known
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 11 Mar 2010 21:57:20 +0000 (16:57 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 11 Mar 2010 21:57:20 +0000 (16:57 -0500)
to work on AIX and SunOS 4, but may be incorrect on other systems
that lack WCOREDUMP.

include/compat.h

index 4641f3b96d4c5011e75e1bd441314c87d9d8d397..1d00fa6e1edbd75f6ab99c0c7dae75120c98eb47 100644 (file)
@@ -293,4 +293,8 @@ const char *getprogname(void);
     } while (0)
 #endif
 
+#ifndef WCOREDUMP
+# define WCOREDUMP(x)  ((x) & 0x80)
+#endif
+
 #endif /* _SUDO_COMPAT_H */