pkgsrc/mail/heirloom-mailx/patches/patch-ae
obache 703a87c2ab Import heirloom-mailx-12.4 as mail/heirloom-mailx.
Based on PR 38262, some portability improvement and ipv6 support optionify.

mailx (Heirloom Mailx; formerly nail) is a mail user agent derived from
Berkeley Mail 8.1. It is intended to provide the functionality of the
POSIX.2 mailx command with built-in support for MIME messages. This means
it can handle international character sets as well as attachments. In
recent system environments, nail is Unicode/UTF-8 capable. It further
contains some minor enhancements like the ability to set a "From:" Address.
2008-10-30 13:01:00 +00:00

20 lines
506 B
Text

$NetBSD: patch-ae,v 1.1.1.1 2008/10/30 13:01:00 obache Exp $
--- dotlock.c.orig 2006-03-20 15:49:46.000000000 +0000
+++ dotlock.c
@@ -52,6 +52,15 @@ static char sccsid[] = "@(#)dotlock.c 2.
#define O_SYNC 0
#endif
+#ifdef HAVE_PATHS_H
+#include <paths.h>
+#endif
+
+#ifdef _PATH_MAILDIR
+#undef MAILSPOOL
+#define MAILSPOOL _PATH_MAILDIR
+#endif
+
static int maildir_access(const char *fname);
static int perhaps_setgid(const char *name, gid_t gid);
static int create_exclusive(const char *fname);