1From b47fa9532a7090d76521603dbc818bdec100085f Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Tue, 15 Sep 2020 17:04:27 -0700 4Subject: [PATCH] include sys/time.h 5 6This provides missing definitions of timeval stuct 7 8Fixes 9| ../../../git/src/ccutil/ocrclass.h:154:7: error: member access into 10incomplete type 'struct timeval' 11| tv->tv_usec = (millisecs.count() % 1000) * 1000; 12 13Upstream-Status: Pending 14Signed-off-by: Khem Raj <raj.khem@gmail.com> 15--- 16 src/ccutil/ocrclass.h | 2 ++ 17 1 file changed, 2 insertions(+) 18 19diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h 20index d39a6dd6..96395c9b 100644 21--- a/src/ccutil/ocrclass.h 22+++ b/src/ccutil/ocrclass.h 23@@ -28,6 +28,8 @@ 24 25 #include <chrono> 26 #include <ctime> 27+#include <sys/time.h> 28+ 29 #ifdef _WIN32 30 #include <winsock2.h> // for timeval 31 #endif 32-- 332.28.0 34 35