pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-curl Avoid "sun" definition.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6f7a79bcfabb
branches:  trunk
changeset: 361236:6f7a79bcfabb
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Apr 18 15:06:22 2017 +0000

description:
Avoid "sun" definition.

diffstat:

 www/py-curl/distinfo                 |   3 ++-
 www/py-curl/patches/patch-src_easy.c |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r 3c4661ef9c76 -r 6f7a79bcfabb www/py-curl/distinfo
--- a/www/py-curl/distinfo      Tue Apr 18 14:02:10 2017 +0000
+++ b/www/py-curl/distinfo      Tue Apr 18 15:06:22 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.21 2017/04/05 17:56:18 adam Exp $
+$NetBSD: distinfo,v 1.22 2017/04/18 15:06:22 jperkin Exp $
 
 SHA1 (pycurl-7.43.0.tar.gz) = e8e9c7e9ae91ae32096b8c86cfc7d49976a66d1b
 RMD160 (pycurl-7.43.0.tar.gz) = 887605e420279d92862187e7f989fb032c3e08ed
 SHA512 (pycurl-7.43.0.tar.gz) = 7442462c74c19964b9d72976e9b92bf68bb37debc1401bc399590bea42704065da13d6de710e795eeae79a4651b9a08841d50454243cb0994c7eb1c1bab233a5
 Size (pycurl-7.43.0.tar.gz) = 182522 bytes
 SHA1 (patch-setup.py) = 41722b45efbbc3e3b65f88354b647b4c6304ab50
+SHA1 (patch-src_easy.c) = ccb16c66536b0ec2df96346bf008b9030fb6d1d6
diff -r 3c4661ef9c76 -r 6f7a79bcfabb www/py-curl/patches/patch-src_easy.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-curl/patches/patch-src_easy.c      Tue Apr 18 15:06:22 2017 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_easy.c,v 1.1 2017/04/18 15:06:22 jperkin Exp $
+
+Avoid "sun" definition.
+
+--- src/easy.c.orig    2016-02-04 04:09:31.000000000 +0000
++++ src/easy.c
+@@ -653,12 +653,12 @@ convert_protocol_address(struct sockaddr
+ #if !defined(WIN32)
+     case AF_UNIX:
+         {
+-            struct sockaddr_un* sun = (struct sockaddr_un*)saddr;
++            struct sockaddr_un* sockun = (struct sockaddr_un*)saddr;
+ 
+ #if PY_MAJOR_VERSION >= 3
+-            res_obj = Py_BuildValue("y", sun->sun_path);
++            res_obj = Py_BuildValue("y", sockun->sun_path);
+ #else
+-            res_obj = Py_BuildValue("s", sun->sun_path);
++            res_obj = Py_BuildValue("s", sockun->sun_path);
+ #endif
+         }
+         break;



Home | Main Index | Thread Index | Old Index