From d6fd1784007261aea0eb1bbc68ca77c467e6dadd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 1 Apr 2007 19:07:59 +0000 Subject: fix fuse compile on osx git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6807 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/fuse/patches/100-cross_compile.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 package/fuse/patches/100-cross_compile.patch (limited to 'package/fuse/patches/100-cross_compile.patch') diff --git a/package/fuse/patches/100-cross_compile.patch b/package/fuse/patches/100-cross_compile.patch new file mode 100644 index 0000000000..b7ec1518ce --- /dev/null +++ b/package/fuse/patches/100-cross_compile.patch @@ -0,0 +1,13 @@ +--- fuse.old/kernel/configure 2007-04-01 21:04:47.000000000 +0200 ++++ fuse.dev/kernel/configure 2007-04-01 21:05:44.000000000 +0200 +@@ -1851,7 +1851,9 @@ + + { echo "$as_me:$LINENO: checking kernel source version" >&5 + echo $ECHO_N "checking kernel source version... $ECHO_C" >&6; } +- if test -r $kernelbuild/include/linux/version.h && fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then ++ if [ -n "$kernsrcver" ]; then ++ echo "$kernsrcver (cached)" ++ elif test -r $kernelbuild/include/linux/version.h && fgrep -q UTS_RELEASE $kernelbuild/include/linux/version.h; then + kernsrcver=`(echo "#include "; echo "kernsrcver=UTS_RELEASE") | cpp -I $kernelbuild/include | grep "^kernsrcver=" | cut -d \" -f 2` + elif test -r $kernelbuild/include/linux/utsrelease.h && fgrep -q UTS_RELEASE $kernelbuild/include/linux/utsrelease.h; then + kernsrcver=`(echo "#include "; echo "kernsrcver=UTS_RELEASE") | cpp -I $kernelbuild/include | grep "^kernsrcver=" | cut -d \" -f 2` -- cgit v1.2.3