Mercurial > hg > xemacs-beta
diff lib-src/fakemail.c @ 215:1f0dabaa0855 r20-4b6
Import from CVS: tag r20-4b6
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:07:35 +0200 |
parents | 376386a54a3c |
children | fbbf69b4e8a7 |
line wrap: on
line diff
--- a/lib-src/fakemail.c Mon Aug 13 10:06:48 2007 +0200 +++ b/lib-src/fakemail.c Mon Aug 13 10:07:35 2007 +0200 @@ -25,14 +25,15 @@ #if defined (BSD) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) /* This program isnot used in BSD, so just avoid loader complaints. */ -void +int main () { + return 0; } #elif defined (LINUX) #include <stdio.h> #include <stdlib.h> -void +int main () { /* Linux /bin/mail, if it exists, is NOT the Unix v7 mail that @@ -42,12 +43,14 @@ fprintf (stderr, "Make sure you have the sendmail program, and\n"); fprintf (stderr, "set the Lisp variable `sendmail-program' to point\n"); fprintf (stderr, "to the path of the sendmail binary.\n"); - exit (1); + return 1; } #else /* not BSD 4.2 (or newer) */ #ifdef MSDOS +int main () { + return 0; } #else /* not MSDOS */ /* This conditional contains all the rest of the file. */ @@ -620,7 +623,7 @@ return; } -void +int main (argc, argv) int argc; char **argv; @@ -670,7 +673,7 @@ put_string (buf); } - exit (close_the_streams ()); + return close_the_streams (); } #endif /* not MSDOS */