Drop posix_fadvise(3) completely before unpacking.

Some systems with small memory might fail to make the preallocation,
as seen in the rpi. It doesn't give us too much gain anyway.
This commit is contained in:
Juan RP
2013-02-20 12:59:11 +01:00
parent 1f324a76a2
commit e525e2c251
2 changed files with 0 additions and 26 deletions

18
configure vendored
View File

@@ -344,24 +344,6 @@ else
fi
rm -f _$func.c _$func
# Check for posix_fadvise(2)
func=posix_fadvise
printf "Checking for $func() ... "
cat <<EOF >_$func.c
#include <fcntl.h>
int main(void) {
posix_fadvise(0, 0, 0, POSIX_FADV_NORMAL);
return 0;
}
EOF
if $XCC _$func.c -o _$func 2>/dev/null; then
echo "yes."
echo "CPPFLAGS += -DHAVE_POSIX_FADVISE" >>$CONFIG_MK
else
echo "no."
fi
rm -f _$func _$func.c
#
# Check for strcasestr().
#