From edc3a90aa9737c3119b47d57251e051262069368 Mon Sep 17 00:00:00 2001 From: Sean Burau Date: Thu, 12 Feb 2015 10:27:06 -0800 Subject: [PATCH] Fix compilation when linking against Android standard C library (missing lfind POSIX function) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c014cf0..cbe6d55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,6 +191,10 @@ list ( APPEND TIFF_SRCS tif_win32.c ) endif ( ) add_prefix ( libtiff/ TIFF_SRCS ) +if( NOT HAVE_SEARCH_H ) + list ( APPEND TIFF_SRCS port/lfind.c ) +endif ( ) + if ( NOT WIN32 ) find_library ( M_LIBRARY NAMES m PATHS /usr/lib /usr/local/lib ) if ( NOT M_LIBRARY )