mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-11-29 18:37:36 +08:00
Don't put proxy and shard together in one compilation and fix several warnings
This commit is contained in:
parent
5be42887c1
commit
0e6a298400
@ -4,9 +4,9 @@ libdir=@CMAKE_INSTALL_PREFIX@/lib
|
||||
pkglibdir=${libdir}/cetus
|
||||
plugindir=${pkglibdir}/plugins
|
||||
|
||||
Name: MySQL Proxy
|
||||
Name: cetus
|
||||
Version: @PACKAGE_VERSION_STRING@
|
||||
Description: MySQL Proxy
|
||||
URL: http://forge.mysql.com/wiki/MySQL_Proxy
|
||||
Description: cetus
|
||||
URL: https://github.com/Lede-Inc/cetus
|
||||
Requires: glib-2.0 >= 2.16, mysql-chassis >= @PACKAGE_VERSION_STRING@
|
||||
Libs: -L${libdir} -lmysql-chassis-proxy
|
||||
|
@ -17,8 +17,11 @@
|
||||
# 02110-1301 USA
|
||||
#
|
||||
# $%ENDLICENSE%$
|
||||
ADD_SUBDIRECTORY(proxy)
|
||||
ADD_SUBDIRECTORY(admin)
|
||||
if(SIMPLE_PARSER)
|
||||
ADD_SUBDIRECTORY(proxy)
|
||||
else(SIMPLE_PARSER)
|
||||
ADD_SUBDIRECTORY(shard)
|
||||
endif(SIMPLE_PARSER)
|
||||
## needs readline
|
||||
# ADD_SUBDIRECTORY(cli)
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
$%ENDLICENSE%$ */
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <glib.h>
|
||||
#include <time.h>
|
||||
#include <math.h>
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <sys/uio.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
$%ENDLICENSE%$ */
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <glib.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user