aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 5c87df08..2ab5f6f9 100644
--- a/driver.c
+++ b/driver.c
@@ -52,6 +52,8 @@
#define SMTP_PORT 25 /* standard SMTP service port */
+extern char *strstr(); /* needed on sysV68 R3V7.1. */
+
int batchlimit; /* how often to tear down the delivery connection */
int fetchlimit; /* how often to tear down the server connection */
int batchcount; /* count of messages sent in current batch */
@@ -884,6 +886,9 @@ const struct method *proto; /* protocol method table */
if (!(sockfp = SockOpen(ctl->server.names->id,
ctl->server.port ? ctl->server.port : protocol->port)))
{
+#ifndef EHOSTUNREACH
+#define EHOSTUNREACH (-1)
+#endif
if (errno != EHOSTUNREACH)
error(0, errno, "connecting to host");
ok = PS_SOCKET;