Fix compilation of fuse with 2.6.24
[openwrt.git] / package / fuse / patches / 100-cross_compile.patch
1 Index: fuse-2.6.5/kernel/configure
2 ===================================================================
3 --- fuse-2.6.5.orig/kernel/configure 2007-06-23 13:03:50.000000000 +0200
4 +++ fuse-2.6.5/kernel/configure 2007-06-23 13:03:50.000000000 +0200
5 @@ -1851,7 +1851,9 @@
6
7 { echo "$as_me:$LINENO: checking kernel source version" >&5
8 echo $ECHO_N "checking kernel source version... $ECHO_C" >&6; }
9 - if test -r $kernelbuild/include/linux/version.h && fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
10 + if [ -n "$kernsrcver" ]; then
11 + echo "$kernsrcver (cached)"
12 + elif test -r $kernelbuild/include/linux/version.h && fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then
13 kernsrcver=`(echo "#include <linux/version.h>"; echo "kernsrcver=UTS_RELEASE") | cpp -I $kernelbuild/include | grep "^kernsrcver=" | cut -d \" -f 2`
14 elif test -r $kernelbuild/include/linux/utsrelease.h && fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then
15 kernsrcver=`(echo "#include <linux/utsrelease.h>"; echo "kernsrcver=UTS_RELEASE") | cpp -I $kernelbuild/include | grep "^kernsrcver=" | cut -d \" -f 2`
This page took 0.045588 seconds and 5 git commands to generate.