Skip to content

Commit

Permalink
build: don't guess where a feature may be available
Browse files Browse the repository at this point in the history
Test the feature, not the OS. Fixes Android build.
  • Loading branch information
Cory Fields committed May 16, 2013
1 parent 3111408 commit 79c4903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion xbmc/filesystem/HDFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79c4903

Please sign in to comment.