poky/meta/recipes-devtools/valgrind/valgrind-3.7.0/fix_unsupporting_kernel_3.patch
Shane Wang 2ae7ca4efb valgrind: upgrade to 3.7.0
This patch is to upgrade valgrind to 3.7.0.
The licenses are changed from "Copyright (C) 2000-2010 Julian Seward. All rights reserved." to "Copyright (C) 2000-2011 Julian Seward. All rights reserved."

(From OE-Core rev: 7f58d1e670470e76077102629efabe91e5c2b9bf)

Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-03 12:14:22 +00:00

27 lines
881 B
Diff

valgrind: Add 3.x statements to "case" for supporting the kernel 3.x
Signed-off-by: Lin Tong <tong.lin@intel.com>
Upstream-Status: Pending
diff --git a/configure.in b/configure.in
index 3878619..1cb7dc7 100644
--- a/configure.in
+++ b/configure.in
@@ -229,10 +229,14 @@ case "${host_os}" in
AC_MSG_RESULT([2.4 family (${kernel})])
AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
;;
+ 3.*)
+ AC_MSG_RESULT([3 family (${kernel})])
+ AC_DEFINE([KERNEL_3], 1, [Define to 1 if you're using Linux 3.x])
+ ;;
*)
AC_MSG_RESULT([unsupported (${kernel})])
- AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6])
+ AC_MSG_ERROR([Valgrind works on kernels 2.4, 2.6, 3.x])
;;
esac