diff --git a/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h b/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h
index 1b9673f..924be7b 100644
--- a/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h
+++ b/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h
@@ -24,6 +24,7 @@
 // Debug performance for operations
 // #define ___DEBUG_PERF___
 
+#include <sys/time.h>
 #ifdef _WIN32
 #include <winsock.h> // timeval
 #else
