summaryrefslogtreecommitdiff
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-08-01 21:14:48 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-08-01 21:14:48 -0700
commit13294f95172c68a5e77143f917231e0f17f37537 (patch)
tree64d703087135fe71be44b267ca9d105ede888cc9 /lib-src/movemail.c
parent90df0db330dc6d168bf8cdb950a066a2916857ad (diff)
downloademacs-13294f95172c68a5e77143f917231e0f17f37537.tar.gz
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.
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c4
1 files changed, 2 insertions, 2 deletions
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