--- a/include/tesseract/ocrclass.h
+++ b/include/tesseract/ocrclass.h
@@ -29,6 +29,10 @@
#include <chrono>
#include <ctime>
+#ifndef __GLIBC__
+#include <sys/time.h>
+#endif
+
namespace tesseract {