diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-02 04:22:14 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-02 04:22:14 +0800 |
commit | 57c5b6b236e0712571895058ee64c55e16bd7d4a (patch) | |
tree | f23fa76b74a5b02cea7cb9a19435a6fd5209c6e1 /vietnamese/x-unikey | |
parent | 6842a95a50ef439d7d3fe8fd18166d745f851bdd (diff) | |
download | freebsd-ports-gnome-57c5b6b236e0712571895058ee64c55e16bd7d4a.tar.gz freebsd-ports-gnome-57c5b6b236e0712571895058ee64c55e16bd7d4a.tar.zst freebsd-ports-gnome-57c5b6b236e0712571895058ee64c55e16bd7d4a.zip |
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
Diffstat (limited to 'vietnamese/x-unikey')
-rw-r--r-- | vietnamese/x-unikey/files/patch-src_ukengine_mactab.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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); |