diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-07-15 02:03:58 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-07-15 02:04:19 +0300 |
commit | 6572e15d7ede0b3cc37b775a2f80f26dec4b8077 (patch) | |
tree | 249f437385b805d2133c72c718556bdc37449581 /sal/qa | |
parent | a4d1e61d0cb1d396053ef4104968de26e4dd31b0 (diff) |
Android build fixes
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 4 | ||||
-rw-r--r-- | sal/qa/osl/file/osl_File_Const.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index a5efd3d6d4ac..47895582b648 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 c5d2078f527e..939e6df92f90 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 "/" |