diff options
author | jperkin <jperkin> | 2015-04-27 13:34:05 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2015-04-27 13:34:05 +0000 |
commit | e14169c94fdff85fc11ddd1e7382d17aa3b7bd42 (patch) | |
tree | b7e625521a60d86a23673e29f0d0eca414e2ae67 /mail | |
parent | b493b7ff71d4b9d27e7898328613693a391a53ff (diff) | |
download | pkgsrc-e14169c94fdff85fc11ddd1e7382d17aa3b7bd42.tar.gz |
Add SunOS to the list of platforms without sockaddr.sa_len.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/libetpan/distinfo | 3 | ||||
-rw-r--r-- | mail/libetpan/patches/patch-src_low-level_smtp_mailsmtp.c | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/mail/libetpan/distinfo b/mail/libetpan/distinfo index 88e5af0fecb..7abaa56e069 100644 --- a/mail/libetpan/distinfo +++ b/mail/libetpan/distinfo @@ -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 --git a/mail/libetpan/patches/patch-src_low-level_smtp_mailsmtp.c b/mail/libetpan/patches/patch-src_low-level_smtp_mailsmtp.c new file mode 100644 index 00000000000..55366cf8d87 --- /dev/null +++ b/mail/libetpan/patches/patch-src_low-level_smtp_mailsmtp.c @@ -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); |