summaryrefslogtreecommitdiffstats
path: root/graphics/tesseract/patches/fix-missing-includes.patch
blob: daa82b618d1c3733304f2b036459b7e60e53386c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Explicitly include sys/time.h for timeval on UNIX. Required on non-glibc
systems.

--- a/src/ccutil/ocrclass.h
+++ b/src/ccutil/ocrclass.h
@@ -31,6 +31,8 @@
 #ifdef _WIN32
 #include <winsock2.h> // for timeval
+#else
+#include <sys/time.h> // for timeval
 #endif
 
 /**********************************************************************
  * EANYCODE_CHAR