Signed-off-by: Russell Senior <[email protected]>
---
 utils/tesseract/Makefile                            |  4 ++--
 utils/tesseract/patches/001-fix_include_files.patch | 10 ++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)
 create mode 100644 utils/tesseract/patches/001-fix_include_files.patch

diff --git a/utils/tesseract/Makefile b/utils/tesseract/Makefile
index 36b0028..0ff5f63 100644
--- a/utils/tesseract/Makefile
+++ b/utils/tesseract/Makefile
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011 OpenWrt.org
+# Copyright (C) 2011-2014 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tesseract
 PKG_VERSION:=3.01
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://tesseract-ocr.googlecode.com/files/
diff --git a/utils/tesseract/patches/001-fix_include_files.patch 
b/utils/tesseract/patches/001-fix_include_files.patch
new file mode 100644
index 0000000..bb0970f
--- /dev/null
+++ b/utils/tesseract/patches/001-fix_include_files.patch
@@ -0,0 +1,10 @@
+--- a/viewer/svutil.cpp
++++ b/viewer/svutil.cpp
+@@ -39,6 +39,7 @@ struct addrinfo {
+ #include <string.h>
+ #include <netdb.h>
+ #include <sys/socket.h>
++#include <unistd.h>
+ #ifdef __linux__
+ #include <sys/prctl.h>
+ #endif
-- 
1.8.3.2


-- 
Russell Senior, President
[email protected]
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to