Skip to content

Commit 833fda8

Browse files
committed
InnoDB: Enable UNIV_DEBUG_VALGRIND for cmake -DWITH_VALGRIND
The symbol HAVE_VALGRIND_MEMCHECK_H was never defined. Instead, the symbol HAVE_VALGRIND should have been used.
1 parent f516db3 commit 833fda8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

storage/innobase/include/univ.i

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
4+
Copyright (c) 2013, 2017, MariaDB Corporation.
45
Copyright (c) 2008, Google Inc.
56
67
Portions of this file contain modifications contributed and copyrighted by
@@ -171,7 +172,7 @@ command. Not tested on Windows. */
171172
#define UNIV_COMPILE_TEST_FUNCS
172173
*/
173174

174-
#if defined(HAVE_valgrind)&& defined(HAVE_VALGRIND_MEMCHECK_H)
175+
#if defined HAVE_valgrind && defined HAVE_VALGRIND
175176
# define UNIV_DEBUG_VALGRIND
176177
#endif /* HAVE_VALGRIND */
177178
#if 0

storage/xtradb/include/univ.i

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*****************************************************************************
22
33
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
4+
Copyright (c) 2013, 2017, MariaDB Corporation.
45
Copyright (c) 2008, Google Inc.
56
67
Portions of this file contain modifications contributed and copyrighted by
@@ -183,7 +184,7 @@ command. Not tested on Windows. */
183184
#define UNIV_COMPILE_TEST_FUNCS
184185
*/
185186

186-
#if defined(HAVE_valgrind)&& defined(HAVE_VALGRIND_MEMCHECK_H)
187+
#if defined HAVE_valgrind && defined HAVE_VALGRIND
187188
# define UNIV_DEBUG_VALGRIND
188189
#endif
189190
#if 0

0 commit comments

Comments
 (0)