8000 Fixes to issue #244: libjson-rpc-cpp does not build on Linux. (#246) · cinemast/libjson-rpc-cpp@56b3e04 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56b3e04

Browse files
marcosszydlocinemast
authored andcommitted
Fixes to issue #244: libjson-rpc-cpp does not build on Linux. (#246)
* Fixes to issue #244: libjson-rpc-cpp does not build on Linux. There are no code changes made. Three files were changed: CMakeDependencies.cmake was missing the command find_package(Threads REQUIRED) The test file test_integration.cpp was missing an include file: <unistd.h> The third file that I modified, CMakeLists.txt, should be restored to its original form. I changed it so I could build withou HTTP, which I don't need. The code was built and tested on RedHat REL 7 (with HTTP disabled in CMake). * Re-enable HTTP libs
1 parent a6f29b9 commit 56b3e04

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cmake/CMakeDependencies.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ if (${REDIS_SERVER} OR ${REDIS_CLIENT})
3838
message(STATUS "Hiredis lib : ${HIREDIS_LIBRARIES}")
3939
endif()
4040

41+
find_package(Threads REQUIRED)
4142
find_package(Doxygen)
4243

4344
if (${COMPILE_TESTS})

src/test/test_integration.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ TEST_CASE("test_integration_unixdomain", TEST_MODULE) {
136136

137137
#include <jsonrpccpp/client/connectors/filedescriptorclient.h>
138138
#include <jsonrpccpp/server/connectors/filedescriptorserver.h>
139+
#include <unistd.h>
139140

140141
TEST_CASE("test_integration_filedescriptor", TEST_MODULE) {
141142
int c2sfd[2]; // Client to server fd

0 commit comments

Comments
 (0)
0