summaryrefslogtreecommitdiffstats
path: root/package/valgrind/valgrind-3.6.1-configure-support-linux-3.patch
blob: a3b24825f0c0b83a1a2cd9ce05b5be2b835a6d06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Add support for kernel 3.x. From upstream r11796 (via Debian).

Signed-off-by: Baruch Siach <baruch@tkos.co.il>

Index: valgrind-3.6.1/configure.in
===================================================================
--- valgrind-3.6.1.orig/configure.in	2011-02-15 18:31:17.000000000 +0100
+++ valgrind-3.6.1/configure.in	2011-07-08 22:36:36.051563848 +0200
@@ -220,7 +220,7 @@
         kernel=`uname -r`
 
         case "${kernel}" in
-             2.6.*) 
+             2.6.*|3.*) 
         	    AC_MSG_RESULT([2.6 family (${kernel})])
         	    AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
         	    ;;
Index: valgrind-3.6.1/configure
===================================================================
--- valgrind-3.6.1.orig/configure	2011-07-08 22:37:18.911240743 +0200
+++ valgrind-3.6.1/configure	2011-07-08 22:37:44.847045178 +0200
@@ -5348,7 +5348,7 @@
         kernel=`uname -r`
 
         case "${kernel}" in
-             2.6.*)
+             2.6.*|3.*)
         	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
 $as_echo "2.6 family (${kernel})" >&6; }