pkgsrc/mail/ja-mh/patches/patch-ao
2013-03-28 21:31:25 +00:00

48 lines
1.1 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$NetBSD: patch-ao,v 1.5 2013/03/28 21:31:25 joerg Exp $
* Don't declare errno but include <errno.h>.
--- zotnet/mts/lock.c.orig 2001-04-03 07:22:46.000000000 +0000
+++ zotnet/mts/lock.c
@@ -77,10 +77,7 @@ static char ident[] = "@(#)$Id: lock.c,v
#define FLOCK /* LOCKF will override this, if defined */
#endif
-#ifdef __CYGWIN32__
#include <errno.h>
-#endif
-extern int errno;
#ifdef LOCKONLY
#ifndef MMDFONLY
@@ -103,7 +100,13 @@ char *lockname_from_fd();
#endif /* MAILLOCK */
static int b_lkopen(), lockit(), f_lkopen();
-static lockname(), timerON(), timerOFF();
+static lockname(), timerOFF();
+
+#ifdef LIBLOCKFILE
+static void timerON (char *lock, int fd, int ltype);
+#else
+static void timerON (char *lock, int fd);
+#endif
time_t time ();
char *mktemp ();
@@ -620,13 +623,10 @@ int sig;
/* */
#ifdef LIBLOCKFILE
-static timerON (lock, fd, ltype)
-int ltype;
+static void timerON (char *lock, int fd, int ltype)
#else
-static timerON (lock, fd)
+static void timerON (char *lock, int fd)
#endif
-char *lock;
-int fd;
{
register struct lock *lp;