From 5dbb775fd2d163794a9d1aaa0681bd17ed3923cf Mon Sep 17 00:00:00 2001 From: TETYYS Date: Sat, 24 Oct 2015 19:27:09 +0300 Subject: [PATCH] travis6 & test --- .travis.yml | 8 +++++++- Server.c | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd79acf..8e0138a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,16 @@ compiler: - gcc script: + - cd libevent + - cmake . + - make + - make install + - cd .. - cmake . - make before_install: + - git clone https://github.com/libevent/libevent.git - sudo add-apt-repository -y ppa:maxmind/ppa - sudo apt-get -y update - - sudo apt-get install -y libevent-dev python2.7-dev libssl-dev libgeoip-dev libpcre3-dev libconfig-dev libmaxminddb0 libmaxminddb-dev mmdb-bin \ No newline at end of file + - sudo apt-get install -y python2.7-dev libssl-dev libgeoip-dev libpcre3-dev libconfig-dev libmaxminddb0 libmaxminddb-dev mmdb-bin \ No newline at end of file diff --git a/Server.c b/Server.c index ab7cf8c..3ff637f 100644 --- a/Server.c +++ b/Server.c @@ -411,7 +411,7 @@ void ServerRead(struct bufferevent *BuffEvent, void *Ctx) char *buff = malloc(len + 1); evbuffer_copyout(evBuff, buff, len); -#if defined DEBUG && defined __linux__ +#if defined DEBUG && defined HAVE_VALGRIND VALGRIND_MAKE_MEM_DEFINED(buff, len + 1); #endif