Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 1 | From b47fa9532a7090d76521603dbc818bdec100085f Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 15 Sep 2020 17:04:27 -0700 |
| 4 | Subject: [PATCH] include sys/time.h |
| 5 | |
| 6 | This provides missing definitions of timeval stuct |
| 7 | |
| 8 | Fixes |
| 9 | | ../../../git/src/ccutil/ocrclass.h:154:7: error: member access into |
| 10 | incomplete type 'struct timeval' |
| 11 | | tv->tv_usec = (millisecs.count() % 1000) * 1000; |
| 12 | |
| 13 | Upstream-Status: Pending |
| 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 15 | --- |
| 16 | src/ccutil/ocrclass.h | 2 ++ |
| 17 | 1 file changed, 2 insertions(+) |
| 18 | |
| 19 | diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h |
| 20 | index 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 | -- |
| 33 | 2.28.0 |
| 34 | |