]> Pileus Git - ~andy/fetchmail/commitdiff
OpenBSD port patches.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 12 Jun 1999 23:02:37 +0000 (23:02 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 12 Jun 1999 23:02:37 +0000 (23:02 -0000)
svn path=/trunk/; revision=2499

NEWS
config.guess
configure.in
driver.c
i18n.h
imap.c

diff --git a/NEWS b/NEWS
index 1c5d698fd2f3c3e37994cb30075658ead1121641..a633257f1de3e01c09e2ebc55fec0d42eeca2944 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,11 @@
 
                                Release Notes:
 
+fetchmail-5.1.0 ():
+* Merged in official OpenBSD port patches.
+
+There are 261 people on fetchmail-friends and 408 on fetchmail-announce.
+
 fetchmail-5.0.4 (Fri Jun 11 18:32:58 EDT 1999):
 * Fixed compilation error on systems without vnsprintf.
 * No more GIFs!  RPM is now patent-encumbrance-free.
index 5b40242f089f99e5d4c6663e440382c6583d5992..353f9d9dd3bd22e673691bbe60f37805683922ff 100755 (executable)
@@ -65,6 +65,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
     amiga:NetBSD:*:*)
       echo m68k-cbm-netbsd${UNAME_RELEASE}
       exit 0 ;;
+    amiga:OpenBSD:*:*)
+      echo m68k-cbm-openbsd${UNAME_RELEASE}
+      exit 0 ;;
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
        echo arm-acorn-riscix${UNAME_RELEASE}
        exit 0;;
@@ -102,12 +105,21 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
     atari*:NetBSD:*:*)
        echo m68k-atari-netbsd${UNAME_RELEASE}
        exit 0 ;;
+    atari*:OpenBSD:*:*)
+       echo m68k-atari-openbsd${UNAME_RELEASE}
+       exit 0 ;;
     sun3*:NetBSD:*:*)
        echo m68k-sun-netbsd${UNAME_RELEASE}
        exit 0 ;;
+    sun3*:OpenBSD:*:*)
+       echo m68k-sun-openbsd${UNAME_RELEASE}
+       exit 0 ;;
     mac68k:NetBSD:*:*)
        echo m68k-apple-netbsd${UNAME_RELEASE}
        exit 0 ;;
+    mac68k:OpenBSD:*:*)
+       echo m68k-apple-openbsd${UNAME_RELEASE}
+       exit 0 ;;
     RISC*:ULTRIX:*:*)
        echo mips-dec-ultrix${UNAME_RELEASE}
        exit 0 ;;
@@ -303,6 +315,9 @@ EOF
     hp3[0-9][05]:NetBSD:*:*)
        echo m68k-hp-netbsd${UNAME_RELEASE}
        exit 0 ;;
+    hp3[0-9][05]:OpenBSD:*:*)
+       echo m68k-hp-openbsd${UNAME_RELEASE}
+       exit 0 ;;
     i[34]86:BSD/386:*:* | *:BSD/OS:*:*)
        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
        exit 0 ;;
@@ -312,6 +327,9 @@ EOF
     *:NetBSD:*:*)
        echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
        exit 0 ;;
+    *:OpenBSD:*:*)
+       echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+       exit 0 ;;
     *:GNU:*:*)
        echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
        exit 0 ;;
index f4cc65f871eee6f1b8dd274a0337015837fd6590..54722f86aef8e6f8ecf57519585d1c0b44fcd8b3 100644 (file)
@@ -331,10 +331,10 @@ AC_ARG_WITH(kerberos,
 # The "elif" arm (nonempty $with_kerberos) is kind of a crock.  It works for
 # configuring the BSD/OS Kerberos IV support, though. 
 
-# Check for a NetBSD special case
-if test "$with_kerberos" = "yes" -a `uname` = "NetBSD" 
+# Check for a NetBSD/OpenBSD special case
+if test "$with_kerberos" = "yes" -a `uname` = "NetBSD" -o `uname` = "OpenBSD"
 then
-  echo "Configuring kerberosIV for NetBSD"
+  echo "Configuring kerberosIV for `uname`"
   CEFLAGS="$CEFLAGS -DKERBEROS_V4 -I/usr/include/kerberosIV"
   LIBS="$LIBS -lkrb -ldes"
 elif test -n "$with_kerberos" -a -n "$with_kerberos5"
index 4acd6ade359bdd3d8eb72c46388b3b080cfe86b6..e5a32231ab6ca12fbc6e24f12a09175284c3c698 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -1160,7 +1160,7 @@ int
 kerberos_auth (socket, canonical) 
 /* authenticate to the server host using Kerberos V4 */
 int socket;            /* socket to server host */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
 char *canonical;       /* server name */
 #else
 const char *canonical; /* server name */
diff --git a/i18n.h b/i18n.h
index dd08e601e58d9fbc1cdfab1ad9cbed586fd295f5..d3c482a39c5f0943c2eb338e498e1d7c37f4126a 100644 (file)
--- a/i18n.h
+++ b/i18n.h
@@ -1,5 +1,6 @@
 /* Dummy header for libintl.h */
 
+#undef _
 #ifdef ENABLE_NLS
 #undef __OPTIMIZE__
 #include <libintl.h>
diff --git a/imap.c b/imap.c
index c6e3cc8bc9f76b921a55a8df04a75bfe5cd11b96..313383782ccf12746ba93ba4bf8e5d23b5e3c8d8 100644 (file)
--- a/imap.c
+++ b/imap.c
@@ -293,7 +293,7 @@ static int do_rfc1731(int sock, char *truename)
 
     memcpy(session, credentials.session, sizeof session);
     memset(&credentials, 0, sizeof credentials);
-    des_key_sched(session, schedule);
+    des_key_sched(&session, schedule);
 
     result = krb_get_tf_fullname(TKT_FILE, tktuser, tktinst, tktrealm);
     if (result) {