diff -ur x-unikey-1.0.4.orig/src/ukengine/mactab.cpp x-unikey-1.0.4/src/ukengine/mactab.cpp --- x-unikey-1.0.4.orig/src/ukengine/mactab.cpp 2006-04-09 14:46:02.000000000 +0300 +++ x-unikey-1.0.4/src/ukengine/mactab.cpp 2009-08-10 14:50:50.000000000 +0300 @@ -287,7 +287,7 @@ 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); diff -ur x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp x-unikey-1.0.4/src/ukengine/usrkeymap.cpp --- x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp 2006-04-09 02:31:40.000000000 +0300 +++ x-unikey-1.0.4/src/ukengine/usrkeymap.cpp 2009-08-10 14:48:44.000000000 +0300 @@ -21,6 +21,8 @@ * Boston, MA 02111-1307, USA. */ +#include + #include "stdafx.h" #include using namespace std; @@ -262,4 +264,4 @@ return i; } return -1; -} \ No newline at end of file +}