Author: phunt Date: Mon Oct 14 23:56:53 2013 New Revision: 1532152 URL: http://svn.apache.org/r1532152 Log: ZOOKEEPER-1795. unable to build c client on ubuntu (Raul Gutierrez Segales via phunt)
Modified: zookeeper/trunk/CHANGES.txt zookeeper/trunk/src/c/tests/TestReconfigServer.cc zookeeper/trunk/src/c/tests/ZooKeeperQuorumServer.cc Modified: zookeeper/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/zookeeper/trunk/CHANGES.txt?rev=1532152&r1=1532151&r2=1532152&view=diff ============================================================================== --- zookeeper/trunk/CHANGES.txt (original) +++ zookeeper/trunk/CHANGES.txt Mon Oct 14 23:56:53 2013 @@ -445,6 +445,9 @@ BUGFIXES: ZOOKEEPER-1610. Some classes are using == or != to compare Long/String objects instead of .equals() (Edward Ribeiro via phunt) + ZOOKEEPER-1795. unable to build c client on ubuntu + (Raul Gutierrez Segales via phunt) + IMPROVEMENTS: ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports, Modified: zookeeper/trunk/src/c/tests/TestReconfigServer.cc URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/c/tests/TestReconfigServer.cc?rev=1532152&r1=1532151&r2=1532152&view=diff ============================================================================== --- zookeeper/trunk/src/c/tests/TestReconfigServer.cc (original) +++ zookeeper/trunk/src/c/tests/TestReconfigServer.cc Mon Oct 14 23:56:53 2013 @@ -16,6 +16,7 @@ */ #include <algorithm> #include <cppunit/extensions/HelperMacros.h> +#include <unistd.h> #include "zookeeper.h" #include "Util.h" Modified: zookeeper/trunk/src/c/tests/ZooKeeperQuorumServer.cc URL: http://svn.apache.org/viewvc/zookeeper/trunk/src/c/tests/ZooKeeperQuorumServer.cc?rev=1532152&r1=1532151&r2=1532152&view=diff ============================================================================== --- zookeeper/trunk/src/c/tests/ZooKeeperQuorumServer.cc (original) +++ zookeeper/trunk/src/c/tests/ZooKeeperQuorumServer.cc Mon Oct 14 23:56:53 2013 @@ -21,6 +21,7 @@ #include <cstdlib> #include <fstream> #include <sstream> +#include <unistd.h> ZooKeeperQuorumServer:: ZooKeeperQuorumServer(uint32_t id, uint32_t numServers) :