pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/basic256 Fix portability.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03af55e400c7
branches:  trunk
changeset: 363840:03af55e400c7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jun 17 19:42:58 2017 +0000

description:
Fix portability.

diffstat:

 lang/basic256/distinfo                      |   4 ++--
 lang/basic256/patches/patch-Interpreter.cpp |  13 ++++++++++++-
 2 files changed, 14 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r 0d2ed74b7711 -r 03af55e400c7 lang/basic256/distinfo
--- a/lang/basic256/distinfo    Sat Jun 17 19:42:26 2017 +0000
+++ b/lang/basic256/distinfo    Sat Jun 17 19:42:58 2017 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.6 2015/12/29 23:34:43 dholland Exp $
+$NetBSD: distinfo,v 1.7 2017/06/17 19:42:58 joerg Exp $
 
 SHA1 (basic256_0.9.6.71.tgz) = 3a8ee26230d5b14b5f325c3b6e0db511534d785f
 RMD160 (basic256_0.9.6.71.tgz) = 1edd4a2eb153eb9712f8b33e1ff2a64ebf1ba883
 SHA512 (basic256_0.9.6.71.tgz) = cdebc9da6b3835c7b626e0cf1c90019c6cf5091f43e7f17923b03392eac9013d70817fd60fda705ccb8843ea7d649e30eb8ef50593da39e4a75b1b15c4279f21
 Size (basic256_0.9.6.71.tgz) = 7924162 bytes
-SHA1 (patch-Interpreter.cpp) = 23e0c4d7b611dff4366dbd6859d8c4eddf9d31ad
+SHA1 (patch-Interpreter.cpp) = 1b2cbe8ca0b696f932f231e44716d104156ad633
 SHA1 (patch-RunController.cpp) = 7716844575a393900b9cab1e61abd6b18cf5b138
 SHA1 (patch-Variables.h) = a3e777c774c57103506d09e8300867766c2067fd
diff -r 0d2ed74b7711 -r 03af55e400c7 lang/basic256/patches/patch-Interpreter.cpp
--- a/lang/basic256/patches/patch-Interpreter.cpp       Sat Jun 17 19:42:26 2017 +0000
+++ b/lang/basic256/patches/patch-Interpreter.cpp       Sat Jun 17 19:42:58 2017 +0000
@@ -1,6 +1,8 @@
-$NetBSD: patch-Interpreter.cpp,v 1.2 2015/06/10 14:58:50 joerg Exp $
+$NetBSD: patch-Interpreter.cpp,v 1.3 2017/06/17 19:42:58 joerg Exp $
 
 Avoid overlap with std::mutex.
+Fix delete use.
+Avoid overlap between std::bind and bind(2).
 
 --- Interpreter.cpp.orig       2012-08-06 14:57:58.000000000 +0000
 +++ Interpreter.cpp
@@ -49,3 +51,12 @@
                                }
                        }
                }
+@@ -3400,7 +3402,7 @@ Interpreter::execByteCode()
+                                                               serv_addr.sin_family = AF_INET;
+                                                               serv_addr.sin_addr.s_addr = INADDR_ANY;
+                                                               serv_addr.sin_port = htons(port);
+-                                                              if (bind(tempsockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) {
++                                                              if (::bind(tempsockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) {
+                                                                       errornum = ERROR_NETBIND;
+                                                                       errormessage = strerror(errno);
+                                                                       tempsockfd = netSockClose(tempsockfd);



Home | Main Index | Thread Index | Old Index