Skip to content

Commit b009c29

Browse files
committed
Bug#28350915 CHERRY-PICK FIX FOR BUG#26275510
- Add NDB specific changes backported from patch for mysql-5.6 Change-Id: I9ca338e4204fdcccbbfc4b5bba247e91aa0612a1
1 parent d36d1fe commit b009c29

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

storage/ndb/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -172,7 +172,6 @@ INCLUDE_DIRECTORIES(
172172
${CMAKE_CURRENT_BINARY_DIR}/include
173173

174174
# Util library includes
175-
${ZLIB_INCLUDE_DIR}
176175
${READLINE_INCLUDE_DIR})
177176

178177
# The root of storage/ndb/

storage/ndb/ndb_configure.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
33
#
44
# This program is free software; you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License as published by
@@ -204,10 +204,9 @@ IF(NOT DEFINED WITH_ZLIB)
204204
# Hardcode use of the bundled zlib if not set by MySQL
205205
MESSAGE(STATUS "Using bundled zlib (hardcoded)")
206206
SET(ZLIB_LIBRARY zlib)
207-
SET(ZLIB_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/zlib)
207+
INCLUDE_DIRECTORIES(SYSTEM ${CMAKE_SOURCE_DIR}/zlib)
208208
ENDIF()
209209
NDB_REQUIRE_VARIABLE(ZLIB_LIBRARY)
210-
NDB_REQUIRE_VARIABLE(ZLIB_INCLUDE_DIR)
211210

212211
IF(WITH_CLASSPATH)
213212
MESSAGE(STATUS "Using supplied classpath: ${WITH_CLASSPATH}")

storage/ndb/src/common/util/ndbzio.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -45,11 +45,12 @@
4545
* This is a casual hack to do static memory allocation
4646
* (needed by NDB)
4747
*/
48-
#include "../../../../zlib/zutil.h"
49-
#include "../../../../zlib/zconf.h"
50-
#include "../../../../zlib/inftrees.h"
51-
#include "../../../../zlib/inflate.h"
52-
#include "../../../../zlib/deflate.h"
48+
#include <zutil.h>
49+
#include <zlib.h>
50+
#include <inftrees.h>
51+
#include <inflate.h>
52+
#include <deflate.h>
53+
5354

5455
#include <util/ndbzio.h>
5556

0 commit comments

Comments
 (0)