Don't put proxy and shard together in one compilation and fix several warnings

This commit is contained in:
lazio579 2018-03-15 10:27:22 +08:00
parent 5be42887c1
commit 0e6a298400
5 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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)

View File

@ -18,6 +18,7 @@
$%ENDLICENSE%$ */
#define _GNU_SOURCE
#include <glib.h>
#include <time.h>
#include <math.h>

View File

@ -22,6 +22,7 @@
#include "config.h"
#endif
#define _GNU_SOURCE
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <sys/socket.h>

View File

@ -18,6 +18,7 @@
$%ENDLICENSE%$ */
#define _GNU_SOURCE
#include <glib.h>
#include <string.h>
#include <stdlib.h>