mpd: uClibc-0.9.31 fix
[packages.git] / sound / mpd / patches / 100-compile-fixes.patch
1 Index: mpd-0.15.8/configure
2 ===================================================================
3 --- mpd-0.15.8.orig/configure   2010-11-04 00:14:37.187000000 +0100
4 +++ mpd-0.15.8/configure        2010-11-04 00:15:00.156000001 +0100
5 @@ -9191,6 +9191,7 @@
6  # Check whether --with-faad was given.
7  if test "${with_faad+set}" = set; then :
8    withval=$with_faad;
9 +  faad_prefix=$with_faad;
10  else
11    faad_prefix=""
12  fi
13 Index: mpd-0.15.8/src/input/file_input_plugin.c
14 ===================================================================
15 --- mpd-0.15.8.orig/src/input/file_input_plugin.c       2010-11-04 00:15:41.467000002 +0100
16 +++ mpd-0.15.8/src/input/file_input_plugin.c    2010-11-04 00:15:49.194999211 +0100
17 @@ -65,10 +65,6 @@
18  
19         is->size = st.st_size;
20  
21 -#ifdef POSIX_FADV_SEQUENTIAL
22 -       posix_fadvise(fd, (off_t)0, is->size, POSIX_FADV_SEQUENTIAL);
23 -#endif
24 -
25         is->plugin = &input_plugin_file;
26         is->data = GINT_TO_POINTER(fd);
27         is->ready = true;