pkgsrc-WIP-changes archive

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

corert-git: Add required cast to <const char**> in iconv(3)



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Jan 25 00:42:26 2016 +0100
Changeset:	672fefa65b634c4990ddc05a5d0f4c5ff37f1169

Modified Files:
	corert-git/distinfo
	corert-git/patches/patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp

Log Message:
corert-git: Add required cast to <const char**> in iconv(3)

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=672fefa65b634c4990ddc05a5d0f4c5ff37f1169

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 corert-git/distinfo                                    |  2 +-
 .../patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp   | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diffs:
diff --git a/corert-git/distinfo b/corert-git/distinfo
index 9bd865a..b4fa49f 100644
--- a/corert-git/distinfo
+++ b/corert-git/distinfo
@@ -3,5 +3,5 @@ $NetBSD$
 SHA1 (patch-src_Native_Runtime_gcrhenv.cpp) = d76cb47a9e0e8e35c9512d61e2ddfc23c0dccbc9
 SHA1 (patch-src_Native_Runtime_gcrhscan.cpp) = 9326e04f09a35cf435a4d38e70cb02f9f59df351
 SHA1 (patch-src_Native_Runtime_thread.cpp) = 90cc0624800bba44cb798b7623ecfbc618853cd8
-SHA1 (patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp) = 47c7b1ba3e36276475dbcbe223a5de422893865d
+SHA1 (patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp) = 052e888c4c4d4f0836387a36c0d7d7f3cb9e66ef
 SHA1 (patch-src_Native_gc_env_gcenv.interlocked.inl) = 0dc2cc6aa827a84e91360976d9217c6e69adb328
diff --git a/corert-git/patches/patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp b/corert-git/patches/patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp
index 00610e3..8930771 100644
--- a/corert-git/patches/patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp
+++ b/corert-git/patches/patch-src_Native_Runtime_unix_PalRedhawkUnix.cpp
@@ -10,3 +10,21 @@ $NetBSD$
  
  #if !HAVE_SYSCONF && !HAVE_SYSCTL
  #error Neither sysconf nor sysctl is present on the current system
+@@ -334,7 +335,7 @@ int UTF8ToWideChar(const char* bytes, in
+     size_t inbufbytesleft = len;
+     size_t outbufbytesleft = bufLen;
+ 
+-    int rc = iconv(cd, &inbuf, &inbufbytesleft, &outbuf, &outbufbytesleft);
++    int rc = iconv(cd, const_cast<const char **>(&inbuf), &inbufbytesleft, &outbuf, &outbufbytesleft);
+     if (rc == -1)
+     {
+         fprintf(stderr, "iconv_open failed with %d\n", errno);
+@@ -360,7 +361,7 @@ int WideCharToUTF8(const wchar_t* chars,
+     size_t inbufbytesleft = len;
+     size_t outbufbytesleft = bufLen;
+ 
+-    int rc = iconv(cd, &inbuf, &inbufbytesleft, &outbuf, &outbufbytesleft);
++    int rc = iconv(cd, const_cast<const char **>(&inbuf), &inbufbytesleft, &outbuf, &outbufbytesleft);
+     if (rc == -1)
+     {
+         fprintf(stderr, "iconv_open failed with %d\n", errno);


Home | Main Index | Thread Index | Old Index