Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-common.cpp,v 1.1 2015/03/18 15:03:43 joerg Exp $
--- common.cpp.orig 2015-03-17 21:55:04.000000000 +0000
+++ common.cpp
@@ -599,7 +599,7 @@ bool contains_internal(const wchar_t *a,
}
/* wcstring variant of contains_internal. The first parameter is a wcstring, the rest are const wchar_t* */
-__sentinel bool contains_internal(const wcstring &needle, ...)
+__sentinel bool contains_internal(const wcstring *needle, ...)
{
const wchar_t *arg;
va_list va;
@@ -608,7 +608,7 @@ __sentinel bool contains_internal(const
va_start(va, needle);
while ((arg=va_arg(va, const wchar_t *))!= 0)
{
- if (needle == arg)
+ if (*needle == arg)
{
res=1;
break;