pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/libetpan Add SunOS to the list of platforms witho...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46a396346af5
branches:  trunk
changeset: 650866:46a396346af5
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Apr 27 13:34:05 2015 +0000

description:
Add SunOS to the list of platforms without sockaddr.sa_len.

diffstat:

 mail/libetpan/distinfo                                    |   3 ++-
 mail/libetpan/patches/patch-src_low-level_smtp_mailsmtp.c |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r b8ce1f8a3b96 -r 46a396346af5 mail/libetpan/distinfo
--- a/mail/libetpan/distinfo    Mon Apr 27 13:19:15 2015 +0000
+++ b/mail/libetpan/distinfo    Mon Apr 27 13:34:05 2015 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.16 2015/04/03 12:04:30 nros Exp $
+$NetBSD: distinfo,v 1.17 2015/04/27 13:34:05 jperkin Exp $
 
 SHA1 (libetpan-1.6.tar.gz) = a5514139a8c5ee94d0337a89db8141cb3c557fa9
 RMD160 (libetpan-1.6.tar.gz) = f625263df1fcab97d010d25743803e5d4164745b
 Size (libetpan-1.6.tar.gz) = 6144117 bytes
 SHA1 (patch-aa) = e783adf544c9a63df584815ee4b033249cecf0ff
 SHA1 (patch-configure.ac) = 16636e8656018179d62b59ea75fe4a1a753768a2
+SHA1 (patch-src_low-level_smtp_mailsmtp.c) = c6658435ae8e2124a4878ec3ef2ce0a2aa7be7fe
diff -r b8ce1f8a3b96 -r 46a396346af5 mail/libetpan/patches/patch-src_low-level_smtp_mailsmtp.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/libetpan/patches/patch-src_low-level_smtp_mailsmtp.c Mon Apr 27 13:34:05 2015 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_low-level_smtp_mailsmtp.c,v 1.1 2015/04/27 13:34:05 jperkin Exp $
+
+SunOS does not have sa_len.
+
+--- src/low-level/smtp/mailsmtp.c.orig 2014-10-31 21:41:02.000000000 +0000
++++ src/low-level/smtp/mailsmtp.c
+@@ -271,7 +271,7 @@ static int get_hostname(mailsmtp * sessi
+     if (r != 0)
+       return MAILSMTP_ERROR_HOSTNAME;
+ 
+-#if (defined __linux__ || defined WIN32)
++#if (defined __linux__ || defined WIN32 || defined(__sun))
+     r = getnameinfo(&addr, sizeof(addr), hostname, HOSTNAME_SIZE, NULL, 0, NI_NUMERICHOST);
+ #else
+     r = getnameinfo(&addr, addr.sa_len, hostname, HOSTNAME_SIZE, NULL, 0, NI_NUMERICHOST);



Home | Main Index | Thread Index | Old Index