From 59d3b1ebacab7e4f64b2a73563a5884591fe457e Mon Sep 17 00:00:00 2001 From: Michael Kapelko Date: Tue, 22 Aug 2017 22:49:56 +0300 Subject: [PATCH] Fix stat64 build issue with NDK 15 by definining at stat for Android --- src/osgDB/FileUtils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osgDB/FileUtils.cpp b/src/osgDB/FileUtils.cpp index 33c00b37c..b6cb5b50a 100644 --- a/src/osgDB/FileUtils.cpp +++ b/src/osgDB/FileUtils.cpp @@ -95,6 +95,10 @@ typedef char TCHAR; #endif #endif +#if defined(__ANDROID__) + #define stat64 stat +#endif + // set up _S_ISDIR() #if !defined(S_ISDIR) # if defined( _S_IFDIR) && !defined( __S_IFDIR)