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
aa8f0606
Commit
aa8f0606
authored
May 05, 2012
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-255: Compile handlersocket plugin in 5.5
parent
21155422
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
+44
-0
plugin/handler_socket/CMakeLists.txt
plugin/handler_socket/CMakeLists.txt
+41
-0
plugin/handler_socket/handlersocket/mysql_incl.hpp
plugin/handler_socket/handlersocket/mysql_incl.hpp
+3
-0
No files found.
plugin/handler_socket/CMakeLists.txt
0 → 100644
View file @
aa8f0606
IF
(
WIN32 OR CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
)
# Handlersocket does not compile on Windows, compiles but does
# not start on FreeBSD.
RETURN
()
ENDIF
()
#Remove -fno-implicit-templates from compiler flags(handlersocket would not work with it)
IF
(
CMAKE_COMPILER_IS_GNUCXX
)
STRING
(
REPLACE
"-fno-implicit-templates"
""
CMAKE_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
)
ENDIF
()
INCLUDE_DIRECTORIES
(
libhsclient
)
# Handlersocket client library. We do not distribute it,
# it is just compiled in.
SET
(
LIBHSCLIENT_SOURCES
libhsclient/config.cpp
libhsclient/escape.cpp
libhsclient/fatal.cpp
libhsclient/hstcpcli.cpp
libhsclient/socket.cpp
libhsclient/string_util.cpp
)
ADD_CONVENIENCE_LIBRARY
(
hsclient
${
LIBHSCLIENT_SOURCES
}
)
# Solaris needs to link some network libraries
TARGET_LINK_LIBRARIES
(
hsclient
${
LIBSOCKET
}
${
LIBNLS
}
${
LIBBIND
}
)
# handlersocket daemon plugin itself.
SET
(
HANDLERSOCKET_SOURCES
handlersocket/database.cpp
handlersocket/handlersocket.cpp
handlersocket/hstcpsvr_worker.cpp
handlersocket/hstcpsvr.cpp
)
MYSQL_ADD_PLUGIN
(
handlersocket
${
HANDLERSOCKET_SOURCES
}
MODULE_ONLY COMPONENT Server
LINK_LIBRARIES hsclient
)
plugin/handler_socket/handlersocket/mysql_incl.hpp
View file @
aa8f0606
...
...
@@ -13,7 +13,10 @@
#define HAVE_CONFIG_H
#endif
#ifndef MYSQL_DYNAMIC_PLUGIN
#define MYSQL_DYNAMIC_PLUGIN
#endif
#define MYSQL_SERVER 1
#include <my_config.h>
...
...
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