[Libreoffice-commits] .: sal/qa
Tor Lillqvist
tml at kemper.freedesktop.org
Thu Jul 14 16:05:06 PDT 2011
sal/qa/osl/file/osl_File.cxx | 4 ++--
sal/qa/osl/file/osl_File_Const.h | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 17627b601a93b04a5959dc21f210fe11d8352446
Author: Tor Lillqvist <tml at iki.fi>
Date: Fri Jul 15 02:03:58 2011 +0300
Android build fixes
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index e4acd65..e38da90 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -2180,7 +2180,7 @@ namespace osl_VolumeInfo
}
-#if ( defined UNX )
+#if defined(UNX) && !defined(ANDROID)
void getMaxNameLength_002( )
{
struct statvfs aStatFS;
@@ -6055,7 +6055,7 @@ namespace osl_Directory
if (tmp_x.lastIndexOf('/') != (tmp_x.getLength() - 1))
tmp_x += rtl::OString('/');
-#ifndef WNT
+#if !defined(WNT) && !defined(ANDROID)
// FIXME would be nice to create unique dir even on Windows
tmp_x += rtl::OString("XXXXXX");
char *out = mkdtemp(const_cast<char*>(tmp_x.getStr()));
diff --git a/sal/qa/osl/file/osl_File_Const.h b/sal/qa/osl/file/osl_File_Const.h
index cd6f01c..88df98e 100644
--- a/sal/qa/osl/file/osl_File_Const.h
+++ b/sal/qa/osl/file/osl_File_Const.h
@@ -95,7 +95,9 @@ const sal_Char pBuffer_Blank[] = "";
# include <sys/param.h>
# include <sys/mount.h>
# endif
-# include <sys/statvfs.h>
+# if !defined(ANDROID)
+# include <sys/statvfs.h>
+# endif
# include <sys/types.h>
# define TEST_PLATFORM ""
# define TEST_PLATFORM_ROOT "/"
More information about the Libreoffice-commits
mailing list