kumquat-buildroot/package/tesseract-ocr/0001-Fix-timeval-structure-build-failure.patch
Gilles Talis 4bc55061d9 package/tesseract-ocr: fix build on musl
Fixes autobuild failures like:
- http://autobuild.buildroot.net/results/e47da689b4a2912b626f5d31086f6414e3e53774/

Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-07-20 15:36:27 +02:00

28 lines
690 B
Diff

From ea1e1ddfc0af9966a0c613a93087bc3e0a5979a7 Mon Sep 17 00:00:00 2001
From: Gilles Talis <gilles.talis@gmail.com>
Date: Fri, 19 Jul 2019 18:52:03 +0200
Subject: [PATCH] Fix timeval structure build failure
timeval structure definition requires <sys/time.h> to be included
Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
---
src/ccutil/ocrclass.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ccutil/ocrclass.h b/src/ccutil/ocrclass.h
index d39a6dd..2a01118 100644
--- a/src/ccutil/ocrclass.h
+++ b/src/ccutil/ocrclass.h
@@ -28,6 +28,7 @@
#include <chrono>
#include <ctime>
+#include <sys/time.h>
#ifdef _WIN32
#include <winsock2.h> // for timeval
#endif
--
2.7.4