diff options
author | joerg <joerg@pkgsrc.org> | 2017-06-17 19:42:58 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2017-06-17 19:42:58 +0000 |
commit | d39dbc599e8cfa719d293a9cae83b2081bec78e1 (patch) | |
tree | 7f924dd8c757080358423f39c7f9b099b455cb42 /lang/basic256 | |
parent | 358153803c5e50c8432ae25e99e97eb925d5953a (diff) | |
download | pkgsrc-d39dbc599e8cfa719d293a9cae83b2081bec78e1.tar.gz |
Fix portability.
Diffstat (limited to 'lang/basic256')
-rw-r--r-- | lang/basic256/distinfo | 4 | ||||
-rw-r--r-- | lang/basic256/patches/patch-Interpreter.cpp | 13 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lang/basic256/distinfo b/lang/basic256/distinfo index bc4fb8e78c6..4bd47e6c590 100644 --- a/lang/basic256/distinfo +++ b/lang/basic256/distinfo @@ -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 --git a/lang/basic256/patches/patch-Interpreter.cpp b/lang/basic256/patches/patch-Interpreter.cpp index ba3eef41efc..dba7f6e40da 100644 --- a/lang/basic256/patches/patch-Interpreter.cpp +++ b/lang/basic256/patches/patch-Interpreter.cpp @@ -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 @@ Avoid overlap with std::mutex. } } } +@@ -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); |