Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

build: don't guess where a feature may be available

Test the feature, not the OS. Fixes Android build.
  • Loading branch information...
commit 79c4903d48a96ca71686d61700b3e868f528d1d7 1 parent 3111408
Cory Fields authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  configure.in
  2. +1 −1  xbmc/filesystem/HDFile.cpp
2  configure.in
View
@@ -863,7 +863,7 @@ AC_FUNC_STRFTIME
AC_FUNC_STRTOD
AC_FUNC_UTIME_NULL
AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([atexit dup2 fdatasync floor fs_stat_dev ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname getpagesize getpass gettimeofday inet_ntoa lchown localeconv memchr memmove memset mkdir modf munmap pow rmdir select setenv setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul sysinfo tzset utime])
+AC_CHECK_FUNCS([atexit dup2 fdatasync floor fs_stat_dev ftime ftruncate getcwd gethostbyaddr gethostbyname gethostname getpagesize getpass gettimeofday inet_ntoa lchown localeconv memchr memmove memset mkdir modf munmap pow rmdir select setenv setlocale socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strpbrk strrchr strspn strstr strtol strtoul sysinfo tzset utime posix_fadvise])
# Check for various sizes
AC_CHECK_SIZEOF([int])
2  xbmc/filesystem/HDFile.cpp
View
@@ -211,7 +211,7 @@ unsigned int CHDFile::Read(void *lpBuf, int64_t uiBufSize)
if ( ReadFile((HANDLE)m_hFile, lpBuf, (DWORD)uiBufSize, &nBytesRead, NULL) )
{
m_i64FilePos += nBytesRead;
-#if defined(TARGET_LINUX)
+#if defined(HAVE_POSIX_FADVISE)
// Drop the cache between where we last seeked and 16 MB behind where
// we are now, to make sure the file doesn't displace everything else.
// However, we never throw out the first 16 MB of the file, as we might
Please sign in to comment.
Something went wrong with that request. Please try again.