From 57c5b6b236e0712571895058ee64c55e16bd7d4a Mon Sep 17 00:00:00 2001 From: jbeich Date: Wed, 1 Feb 2017 20:22:14 +0000 Subject: vietnamese/x-unikey: unbreak with libc++ 3.9 mactab.cpp:290:10: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char * pos = strchr(item, ':'); ^ ~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout --- vietnamese/x-unikey/files/patch-src_ukengine_mactab.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 vietnamese/x-unikey/files/patch-src_ukengine_mactab.cpp (limited to 'vietnamese/x-unikey') diff --git a/vietnamese/x-unikey/files/patch-src_ukengine_mactab.cpp b/vietnamese/x-unikey/files/patch-src_ukengine_mactab.cpp new file mode 100644 index 000000000000..48c19fd0cfdc --- /dev/null +++ b/vietnamese/x-unikey/files/patch-src_ukengine_mactab.cpp @@ -0,0 +1,11 @@ +--- src/ukengine/mactab.cpp.orig 2006-04-09 11:46:02 UTC ++++ src/ukengine/mactab.cpp +@@ -287,7 +287,7 @@ int CMacroTable::addItem(const char *ite + char key[MAX_MACRO_KEY_LEN]; + + // Parse the input item +- char * pos = strchr(item, ':'); ++ const char * pos = strchr(item, ':'); + if (pos == NULL) + return -1; + int keyLen = (int)(pos - item); -- cgit