You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch

32 lines
995 B

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 <stdio.h>
+
#include "stdafx.h"
#include <iostream>
using namespace std;
@@ -262,4 +264,4 @@
return i;
}
return -1;
-}
\ No newline at end of file
+}