Created
June 19, 2012 12:59
-
-
Save hien/2954030 to your computer and use it in GitHub Desktop.
This patch fix error when building x-unikey on Fedora 17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -uNr x-unikey-1.0.4/src/ukengine/mactab.cpp x-unikey-1.0.4-f17/src/ukengine/mactab.cpp | |
| --- x-unikey-1.0.4/src/ukengine/mactab.cpp 2006-04-09 18:46:02.000000000 +0700 | |
| +++ x-unikey-1.0.4-f17/src/ukengine/mactab.cpp 2012-06-19 19:53:46.197671119 +0700 | |
| @@ -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 -uNr x-unikey-1.0.4/src/ukengine/usrkeymap.cpp x-unikey-1.0.4-f17/src/ukengine/usrkeymap.cpp | |
| --- x-unikey-1.0.4/src/ukengine/usrkeymap.cpp 2006-04-09 06:31:40.000000000 +0700 | |
| +++ x-unikey-1.0.4-f17/src/ukengine/usrkeymap.cpp 2012-06-19 19:54:26.976161318 +0700 | |
| @@ -23,6 +23,8 @@ | |
| #include "stdafx.h" | |
| #include <iostream> | |
| +#include <string.h> | |
| +#include <stdio.h> | |
| using namespace std; | |
| #include <ctype.h> | |
| @@ -262,4 +264,4 @@ | |
| return i; | |
| } | |
| return -1; | |
| -} | |
| \ No newline at end of file | |
| +} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment