wok rev 5893

compcache: fix build with kernel 2.6.34
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jul 22 23:03:19 2010 +0200 (2010-07-22)
parents 3584961ee6c6
children cc3202e6e7e3
files compcache/receipt compcache/stuff/compcache-0.6.2-linux-2.6.34.u
line diff
     1.1 --- a/compcache/receipt	Thu Jul 22 10:00:04 2010 +0200
     1.2 +++ b/compcache/receipt	Thu Jul 22 23:03:19 2010 +0200
     1.3 @@ -20,6 +20,10 @@
     1.4          tazwok cook linux
     1.5      fi
     1.6      cd $src
     1.7 +    
     1.8 +    # Fix build with kernel 2.6.34
     1.9 +    patch -p1 < ../stuff/compcache-0.6.2-linux-2.6.34.u || exit 1
    1.10 +    
    1.11      find -name Makefile | xargs sed -i \
    1.12  		"s|/lib/modules/\$(shell uname -r)/build|$WOK/linux/linux-$KERNEL_VERSION|"
    1.13      make  KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION 
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/compcache/stuff/compcache-0.6.2-linux-2.6.34.u	Thu Jul 22 23:03:19 2010 +0200
     2.3 @@ -0,0 +1,10 @@
     2.4 +--- compcache-0.6.2-ori/ramzswap_drv.c
     2.5 ++++ compcache-0.6.2/ramzswap_drv.c
     2.6 +@@ -29,6 +29,7 @@
     2.7 + #include <linux/swapops.h>
     2.8 + #include <linux/vmalloc.h>
     2.9 + #include <linux/version.h>
    2.10 ++#include <linux/slab.h>
    2.11 + 
    2.12 + #include "compat.h"
    2.13 + #include "ramzswap_drv.h"