--- ./src/CMakeLists.txt.orig	2013-07-16 05:34:05.000000000 +0900
+++ ./src/CMakeLists.txt	2014-03-19 15:51:24.000000000 +0900
@@ -22,6 +22,7 @@
     )
 
 add_definitions( -DLOCALEDIR=\"${CMAKE_INSTALL_PREFIX}/share/locale\" )
+add_definitions( -D_WITH_GETLINE )
 
 fcitx_add_addon_full(libpinyin DESC
 SOURCES ${fcitx_libpinyin_sources}
