Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
22aac874
Commit
22aac874
authored
Nov 27, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
ff71b82d
7da1887c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
9 deletions
+27
-9
VERSION
VERSION
+1
-1
cmake/build_configurations/mysql_release.cmake
cmake/build_configurations/mysql_release.cmake
+9
-1
include/mysql_version.h.in
include/mysql_version.h.in
+1
-1
libmysqld/CMakeLists.txt
libmysqld/CMakeLists.txt
+3
-0
mysys/my_gethwaddr.c
mysys/my_gethwaddr.c
+2
-1
storage/xtradb/CMakeLists.txt
storage/xtradb/CMakeLists.txt
+11
-5
No files found.
VERSION
View file @
22aac874
MYSQL_VERSION_MAJOR=5
MYSQL_VERSION_MINOR=5
MYSQL_VERSION_PATCH=18
MYSQL_VERSION_EXTRA=
-MariaDB
MYSQL_VERSION_EXTRA=
cmake/build_configurations/mysql_release.cmake
View file @
22aac874
...
...
@@ -115,9 +115,9 @@ IF(UNIX)
OPTION
(
WITH_LIBEDIT
""
ON
)
ENDIF
()
OPTION
(
WITH_PIC
""
ON
)
# Why?
IF
(
CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
IF
(
NOT IGNORE_AIO_CHECK
)
# Ensure aio is available on Linux (required by InnoDB)
CHECK_INCLUDE_FILES
(
libaio.h HAVE_LIBAIO_H
)
...
...
@@ -133,6 +133,14 @@ IF(UNIX)
If you really do not want it, pass -DIGNORE_AIO_CHECK to cmake.
"
)
ENDIF
()
# Remove libaio dependency from mysqld
SET
(
XTRADB_PREFER_STATIC_LIBAIO 1
)
# Unfortunately, linking shared libmysqld with static aio
# does not work, unless we add also dynamic one. This also means
# libmysqld.so will depend on libaio.so
SET
(
LIBMYSQLD_SO_EXTRA_LIBS aio
)
ENDIF
()
# Enable fast mutexes on Linux
...
...
include/mysql_version.h.in
View file @
22aac874
...
...
@@ -9,7 +9,7 @@
#include <custom_conf.h>
#else
#define PROTOCOL_VERSION @PROTOCOL_VERSION@
#define MYSQL_SERVER_VERSION "@VERSION@"
#define MYSQL_SERVER_VERSION "@VERSION@
-MariaDB
"
#define MYSQL_BASE_VERSION "mysqld-@MYSQL_BASE_VERSION@"
#define MARIADB_BASE_VERSION "mariadb-@MYSQL_BASE_VERSION@"
#define MYSQL_SERVER_SUFFIX_DEF "@MYSQL_SERVER_SUFFIX@"
...
...
libmysqld/CMakeLists.txt
View file @
22aac874
...
...
@@ -158,6 +158,9 @@ IF(NOT DISABLE_SHARED)
# libmysqld
SET_TARGET_PROPERTIES
(
libmysqld PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
SET_TARGET_PROPERTIES
(
mysqlserver PROPERTIES CLEAN_DIRECT_OUTPUT 1
)
IF
(
LIBMYSQLD_SO_EXTRA_LIBS
)
TARGET_LINK_LIBRARIES
(
libmysqld
${
LIBMYSQLD_SO_EXTRA_LIBS
}
)
ENDIF
()
ENDIF
()
ENDIF
()
mysys/my_gethwaddr.c
View file @
22aac874
...
...
@@ -129,6 +129,7 @@ my_bool my_gethwaddr(uchar *to)
#elif defined(_WIN32)
#include <winsock2.h>
#include <iphlpapi.h>
#pragma comment(lib, "iphlpapi.lib")
#define ETHER_ADDR_LEN 6
...
...
@@ -142,7 +143,7 @@ my_bool my_gethwaddr(uchar *to)
if
(
GetAdaptersInfo
(
info
,
&
info_len
)
!=
ERROR_BUFFER_OVERFLOW
)
goto
err
;
info
=
alloca
(
info_len
);
info
=
(
IP_ADAPTER_INFO
*
)
alloca
(
info_len
);
if
(
GetAdaptersInfo
(
info
,
&
info_len
)
!=
NO_ERROR
)
goto
err
;
...
...
storage/xtradb/CMakeLists.txt
View file @
22aac874
...
...
@@ -23,12 +23,18 @@ INCLUDE(CheckCSourceRuns)
IF
(
UNIX
)
IF
(
CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
CHECK_INCLUDE_FILES
(
libaio.h HAVE_LIBAIO_H
)
CHECK_LIBRARY_EXISTS
(
aio io_queue_init
""
HAVE_LIBAIO
)
ADD_DEFINITIONS
(
"-DUNIV_LINUX -D_GNU_SOURCE=1"
)
IF
(
HAVE_LIBAIO_H AND HAVE_LIBAIO
)
IF
(
XTRADB_PREFER_STATIC_LIBAIO
)
SET
(
CMAKE_FIND_LIBRARY_SUFFIXES .a
${
CMAKE_FIND_LIBRARY_SUFFIXES
}
)
ENDIF
()
FIND_LIBRARY
(
AIO_LIBRARY aio
)
IF
(
AIO_LIBRARY
)
CHECK_LIBRARY_EXISTS
(
${
AIO_LIBRARY
}
io_queue_init
""
HAVE_LIBAIO
)
IF
(
HAVE_LIBAIO AND HAVE_LIBAIO_H
)
ADD_DEFINITIONS
(
-DLINUX_NATIVE_AIO=1
)
LINK_LIBRARIES
(
aio
)
ENDIF
()
LINK_LIBRARIES
(
${
AIO_LIBRARY
}
)
ENDIF
()
ADD_DEFINITIONS
(
"-DUNIV_LINUX -D_GNU_SOURCE=1"
)
ELSEIF
(
CMAKE_SYSTEM_NAME MATCHES
"HP*"
)
ADD_DEFINITIONS
(
"-DUNIV_HPUX -DUNIV_MUST_NOT_INLINE"
)
ELSEIF
(
CMAKE_SYSTEM_NAME STREQUAL
"AIX"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment