LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gnb-build-valgrind-on-obs-kernels.patch of Package valgrind (Project home:gnb:novaprova)

diff -prauN valgrind-3.6.0.orig/config.h.in valgrind-3.6.0/config.h.in
--- valgrind-3.6.0.orig/config.h.in	2010-10-20 13:20:49.000000000 -0700
+++ valgrind-3.6.0/config.h.in	2014-01-14 07:44:47.839965170 -0800
@@ -275,7 +275,7 @@
 /* Define to 1 if you're using Linux 2.4.x */
 #undef KERNEL_2_4
 
-/* Define to 1 if you're using Linux 2.6.x */
+/* Define to 1 if you're using Linux 2.6.x or Linux 3.x */
 #undef KERNEL_2_6
 
 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
diff -prauN valgrind-3.6.0.orig/configure valgrind-3.6.0/configure
--- valgrind-3.6.0.orig/configure	2010-10-20 18:16:18.000000000 -0700
+++ valgrind-3.6.0/configure	2014-01-14 07:44:16.931966469 -0800
@@ -5348,9 +5348,9 @@ $as_echo_n "checking for the kernel vers
         kernel=`uname -r`
 
         case "${kernel}" in
-             2.6.*)
-        	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6 family (${kernel})" >&5
-$as_echo "2.6 family (${kernel})" >&6; }
+             2.6.*|3.*) 
+        	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.6.x/3.x family (${kernel})" >&5
+$as_echo "2.6.x/3.x family (${kernel})" >&6; }
 
 $as_echo "#define KERNEL_2_6 1" >>confdefs.h
 
diff -prauN valgrind-3.6.0.orig/configure.in valgrind-3.6.0/configure.in
--- valgrind-3.6.0.orig/configure.in	2010-10-20 18:14:02.000000000 -0700
+++ valgrind-3.6.0/configure.in	2014-01-14 07:43:01.735969631 -0800
@@ -220,9 +220,9 @@ case "${host_os}" in
         kernel=`uname -r`
 
         case "${kernel}" in
-             2.6.*) 
-        	    AC_MSG_RESULT([2.6 family (${kernel})])
-        	    AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
+             2.6.*|3.*) 
+        	    AC_MSG_RESULT([2.6.x/3.x family (${kernel})])
+        	    AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x or Linux 3.x])
         	    ;;
 
              2.4.*)