Skip to content
This repository
Browse code

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
authored May 15, 2013
2  configure.in
@@ -863,7 +863,7 @@ AC_FUNC_STRFTIME
863 863
 AC_FUNC_STRTOD
864 864
 AC_FUNC_UTIME_NULL
865 865
 AC_FUNC_VPRINTF
866  
-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])
  866
+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])
867 867
 
868 868
 # Check for various sizes
869 869
 AC_CHECK_SIZEOF([int])
2  xbmc/filesystem/HDFile.cpp
@@ -211,7 +211,7 @@ unsigned int CHDFile::Read(void *lpBuf, int64_t uiBufSize)
211 211
   if ( ReadFile((HANDLE)m_hFile, lpBuf, (DWORD)uiBufSize, &nBytesRead, NULL) )
212 212
   {
213 213
     m_i64FilePos += nBytesRead;
214  
-#if defined(TARGET_LINUX)
  214
+#if defined(HAVE_POSIX_FADVISE)
215 215
     // Drop the cache between where we last seeked and 16 MB behind where
216 216
     // we are now, to make sure the file doesn't displace everything else.
217 217
     // However, we never throw out the first 16 MB of the file, as we might

0 notes on commit 79c4903

Please sign in to comment.
Something went wrong with that request. Please try again.