Stephen Wilson Bailey <swb@nconnect.net>
#include <mts/smtp/smtp.h>
#include <zotnet/mts/mts.h>
#include <signal.h>
+#ifdef MPOP
+#include <errno.h>
+#endif
/*
* This module implements an interface to SendMail very similar
struct smtp sm_reply; /* global... */
-#ifdef MPOP
-extern int errno;
-#endif
-
static int doingEHLO;
#define MAXEHLO 20
#include "smtp.h"
#include <zotnet/mts/mts.h>
#include <signal.h>
+#ifdef MPOP
+#include <errno.h>
+#endif
/*
* This module implements an interface to SendMail very similar
struct smtp sm_reply; /* global... */
-#ifdef MPOP
-extern int errno;
-#endif
-
#define MAXEHLO 20
# include <sys/uio.h>
#endif
-extern int errno;
+#include <errno.h>
/*
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#include <errno.h>
#if defined(BIND) && !defined(h_addr)
# define h_addr h_addr_list[0]
#define inaddr_copy(hp,sin) \
memcpy((char *) &((sin)->sin_addr), (hp)->h_addr, (hp)->h_length)
-extern int errno;
-
#define start_tcp_client(sock,priv) \
socket (AF_INET, SOCK_STREAM, 0)
#include <h/popsbr.h>
#include <h/signals.h>
#include <signal.h>
+#include <errno.h>
#define TRM "."
#define TRMLEN (sizeof TRM - 1)
-extern int errno;
-
static int poprint = 0;
static int pophack = 0;
#include <h/mh.h>
#include <h/vmhsbr.h>
+#include <errno.h>
static char *types[] = {
"OK",
static int PEERrfd = NOTOK;
static int PEERwfd = NOTOK;
-extern int errno;
-
/*
* static prototypes
*/
#define MAXNETS 5
#define MAXHOSTS 25
-extern int errno;
-
struct addrent {
int a_addrtype; /* assumes AF_INET for inet_netof () */
union {