From 13294f95172c68a5e77143f917231e0f17f37537 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 1 Aug 2012 21:14:48 -0700 Subject: Port to Solaris 8. Without this change, 'configure' fails because the recently-added wait3 prototype in config.h messes up later 'configure' tests. Fix this problem by droping wait3 and WRETCODE, as they're no longer needed on hosts that are current porting targets. * configure.ac (wait3, WRETCODE): Remove, fixing a FIXME. All uses changed to waitpid and WEXITSTATUS. * src/syswait.h (WRETCODE): Remove, consistently with ../configure.ac. --- lib-src/movemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib-src/movemail.c') diff --git a/lib-src/movemail.c b/lib-src/movemail.c index d157aa8c0b9..c87d97778d1 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -560,8 +560,8 @@ main (int argc, char **argv) wait (&wait_status); if (!WIFEXITED (wait_status)) exit (EXIT_FAILURE); - else if (WRETCODE (wait_status) != 0) - exit (WRETCODE (wait_status)); + else if (WEXITSTATUS (wait_status) != 0) + exit (WEXITSTATUS (wait_status)); #if !defined (MAIL_USE_MMDF) && !defined (MAIL_USE_SYSTEM_LOCK) #ifdef MAIL_USE_MAILLOCK -- cgit v1.2.3