aboutsummaryrefslogtreecommitdiff
path: root/libraries/libsunpinyin/gcc47.patch
blob: d3db5c1d99367ef3a5bd8796f52c884e67bedc0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -Naur sunpinyin-2.0.3.orig/src/ime-core/ic_history.cpp sunpinyin-2.0.3/src/ime-core/ic_history.cpp
--- sunpinyin-2.0.3.orig/src/ime-core/ic_history.cpp	2011-02-18 04:39:52.000000000 +0100
+++ sunpinyin-2.0.3/src/ime-core/ic_history.cpp	2012-09-18 05:32:14.687001314 +0200
@@ -41,6 +41,7 @@
 
 #include <fcntl.h>
 #include <stdio.h>
+#include <unistd.h>
 #include <stdint.h>
 #include <cassert>
 #include <sys/stat.h>
diff -Naur sunpinyin-2.0.3.orig/src/lexicon/genPYT.cpp sunpinyin-2.0.3/src/lexicon/genPYT.cpp
--- sunpinyin-2.0.3.orig/src/lexicon/genPYT.cpp	2011-02-18 04:39:52.000000000 +0100
+++ sunpinyin-2.0.3/src/lexicon/genPYT.cpp	2012-09-18 05:29:24.570735820 +0200
@@ -37,6 +37,7 @@
 
 #include <locale.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 #include "pytrie.h"
 #include "pytrie_gen.h"