#include <h/rcvmail.h>
#include <h/scansbr.h>
#include <zotnet/tws/tws.h>
+#include <zotnet/mts/mts.h>
#include <signal.h>
#include <fcntl.h>
fclose (uf);
exit (RCV_MOK);
+ return 0; /* dead code to satisfy the compiler */
}
char tmpfil[BUFSIZ];
struct stat st;
+#ifdef HAVE_MKSTEMP
+ fd = mkstemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil)));
+#else
unlink (mktemp (strncpy (tmpfil, "/tmp/rcvttyXXXXX", sizeof(tmpfil))));
if ((fd = open (tmpfil, O_RDWR | O_CREAT | O_TRUNC, 0600)) == NOTOK)
return header_fd ();
unlink (tmpfil);
+#endif
if ((child_id = vfork()) == NOTOK) {
/* fork error */
setpgid ((pid_t) 0, getpid ()); /* put in own process group */
execvp (vec[0], vec);
_exit (-1);
+ return 1; /* dead code to satisfy compiler */
}