Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhao Liu committed Jul 27, 2023
1 parent 0eee75b commit 44788ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use_cxx(etcd-cpp-api-core-objects)
add_dependencies(etcd-cpp-api-core-objects protobuf_generates)
include_generated_protobuf_files(etcd-cpp-api-core-objects)
target_link_libraries(etcd-cpp-api-core-objects PUBLIC
${PROTOBUF_LIBRARIES}
protobuf::libprotobuf
${OPENSSL_LIBRARIES}
${GRPC_LIBRARIES}
)
Expand All @@ -32,7 +32,7 @@ if(BUILD_ETCD_CORE_ONLY)
add_library(etcd-cpp-api-core $<TARGET_OBJECTS:etcd-cpp-api-core-objects>)
use_cxx(etcd-cpp-api-core)
target_link_libraries(etcd-cpp-api-core PUBLIC
${PROTOBUF_LIBRARIES}
protobuf::libprotobuf
${OPENSSL_LIBRARIES}
${GRPC_LIBRARIES}
)
Expand All @@ -44,7 +44,7 @@ else()
use_cxx(etcd-cpp-api)
target_link_libraries(etcd-cpp-api PUBLIC
${CPPREST_LIB} # n.b.: the asynchronous client requires pplx in cpprestsdk
${PROTOBUF_LIBRARIES}
protobuf::libprotobuf
${OPENSSL_LIBRARIES}
${GRPC_LIBRARIES}
)
Expand Down
4 changes: 4 additions & 0 deletions src/SyncClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#define NOMINMAX
#endif

#ifdef __ANDROID__
#include <netinet/in.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
Expand Down

0 comments on commit 44788ad

Please sign in to comment.