]> Pileus Git - ~andy/fetchmail/commitdiff
Philippe de Muyter's Motorola fixes.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 16 Jan 1997 21:12:29 +0000 (21:12 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 16 Jan 1997 21:12:29 +0000 (21:12 -0000)
svn path=/trunk/; revision=781

NEWS
configure.in
daemon.c
driver.c
fetchmail.c
imap.c
netrc.c
pop3.c

diff --git a/NEWS b/NEWS
index ca47efe674a60d2c7913852f0111e5e24ed0e9eb..e92796e7b73cd9ffb4b539d834e7098fd2daedd6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -11,10 +11,10 @@ features --
 
 * RFC822 header continuation for long address lists is is now handled properly.
 
-Note: These changes mean that older .fetchmailrc files using the `set'
-syntax for these options will cause fetchmail to die with a parse
-error at initialization time.  Conversion is trivial -- for details,
-see the FAQ.
+Note: The first two changes mean that older .fetchmailrc files using
+the `set' syntax for these options will cause fetchmail to die with a
+parse error at initialization time.  Conversion is trivial -- for
+details, see the FAQ.
 
 bugs --
 
@@ -38,7 +38,7 @@ Note: the RFC subdirectory is no longer included with the distribution
 (this cut its size in half!)  Instead, applicable RFCs are listed on the
 manual page.
 
-There are 192 people on the fetchmail-friends list.
+There are 193 people on the fetchmail-friends list.
 
 ------------------------------------------------------------------------------
 fetchmail-2.8 (Sat Jan 11 15:48:33 EST 1997)
index ae45d083acec2da7ca94dbebd980a38bda3e3a1f..e98a70e30dad266980509b7100f5a30e1ffee3c5 100644 (file)
@@ -40,6 +40,10 @@ AC_CHECK_LIB(nsl,inet_addr)
 # library.  So don't add -lresolv to the link list unless it's necessary
 AC_CHECK_FUNC(res_search,, AC_CHECK_LIB(resolv,res_search))
 
+AC_CHECK_FUNC(strstr, AC_DEFINE(HAVE_STRSTR), 
+              [EXTRASRC="$EXTRASRC \$(srcdir)/strstr.c"
+               EXTRAOBJ="$EXTRAOBJ strstr.o"])
+
 AC_CHECK_FUNC(strcasecmp, AC_DEFINE(HAVE_STRCASECMP), 
               [EXTRASRC="$EXTRASRC \$(srcdir)/strcasecmp.c"
                EXTRAOBJ="$EXTRAOBJ strcasecmp.o"])
index 9256af93bfa6af19206a1b6af2ec048ced1e89a5..aa3917dba206f5d22d4c64d5d5f8698d1ca699dd 100644 (file)
--- a/daemon.c
+++ b/daemon.c
@@ -32,7 +32,7 @@
 #endif
 
 /* BSD portability hack */
-#if !defined(SIGCHLD) && defined(SICHLD)
+#if !defined(SIGCHLD) && defined(SIGCLD)
 #define SIGCHLD        SIGCLD
 #endif
 
@@ -124,7 +124,7 @@ daemonize (const char *logfile, void (*termhook)(int))
   
   /* lose controlling tty */
   signal(SIGHUP, SIG_IGN);
-  if ((childpid = fork) < 0) {
+  if ((childpid = fork()) < 0) {
     error(0, errno, "fork");
     return(PS_IOERR);
   }
index 5c87df08104d80cfeb576048da5cd313824a56f1..2ab5f6f928565eaadcb2c48cde2ea0dc43413a5f 100644 (file)
--- 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;
index 728f7d61bda03cf26b615b4afa3536ed8da57aac..1f090146e1f8751c91d7c5283b1e39dc42756cc8 100644 (file)
@@ -199,7 +199,7 @@ int main (int argc, char **argv)
            fprintf(stderr,"fetchmail: removing stale lockfile\n");
            pid = -1;
            bkgd = FALSE;
-           remove(lockfile);
+           unlink(lockfile);
        }
        fclose(lockfp);
     }
@@ -222,7 +222,7 @@ int main (int argc, char **argv)
        {
            fprintf(stderr,"fetchmail: %s fetchmail at %d killed.\n",
                    bkgd ? "background" : "foreground", pid);
-           remove(lockfile);
+           unlink(lockfile);
            exit(0);
        }
     }
diff --git a/imap.c b/imap.c
index b7c20753ae109110524bf99d235f47d781631834..3640fb81a42008e7de100245a5061eaa0f34e662 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -16,6 +16,8 @@
 #include  "fetchmail.h"
 #include  "socket.h"
 
+extern char *strstr(); /* needed on sysV68 R3V7.1. */
+
 static int count, seen, recent, unseen, imap4, deletecount;
 
 int imap_ok (FILE *sockfp,  char *argbuf)
diff --git a/netrc.c b/netrc.c
index 9ae773eaff3922fb8ab991180f7e2389fb7a1a0f..a56dfd7b5a1385d5bc0bb7b1d020ac2594686a0f 100644 (file)
--- a/netrc.c
+++ b/netrc.c
 #include <stdio.h>
 #include <ctype.h>
 #include <stdlib.h>
-#ifdef HAVE_STRING_H
-#  include <string.h>
-#else
-#  include <strings.h>
-#endif
+#include <string.h>
 
 #include "config.h"
 #include "fetchmail.h"
diff --git a/pop3.c b/pop3.c
index 9a37a32874147933550ef6749aba4d3856ef8707..b8f67bb550bb65d5a1231d0ae18abaf3701f263e 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -21,6 +21,8 @@
 
 #define PROTOCOL_ERROR {error(0, 0, "protocol error"); return(PS_ERROR);}
 
+extern char *strstr(); /* needed on sysV68 R3V7.1. */
+
 static int last;
 
 int pop3_ok (FILE *sockfp, char *argbuf)