madplay: fix build on noMMU platforms
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 7 Dec 2016 22:24:07 +0000 (23:24 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 7 Dec 2016 22:24:07 +0000 (23:24 +0100)
commitcb4a41c62e45c1942a603ec176ba7d6d9ee18b95
tree59fd54df478eac0bea8d91d9a884ccb3dd7ce386
parent5382bac7c6e8dc94aa8cc42191815baeec1db911
madplay: fix build on noMMU platforms

A recent change in uClibc-ng removed the MADV_* definitions for
madvise(), but kept the madvise() function itself. This defeats the
logic used in madplay: it checks if madvise() is available, and if it
is, uses it and assumes the MADV_* definitions exist.

This inconsistency has been reported to upstream uClibc-ng, but in the
mean time, we can simply tell madplay to not use madvise(), which is
anyway useless on noMMU platforms.

Fixes:

  http://autobuild.buildroot.net/results/3291554ea013e5f4a8f3447e10e664dffa8b131b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/madplay/madplay.mk