Skip to content

Commit

Permalink
build: minimal build checks for c-ares
Browse files Browse the repository at this point in the history
Co-Authored-By: Leonardo Di Donato <leodidonato@gmail.com>
Co-Authored-By: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
  • Loading branch information
3 people committed Sep 10, 2020
1 parent 46b90ad commit 73554b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion userspace/libsinsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ include_directories(./include)
include_directories("${JSONCPP_INCLUDE}")
include_directories("${LUAJIT_INCLUDE}")

if(NOT MINIMAL_BUILD)
include_directories("${CARES_INCLUDE}")
endif()

if(NOT WIN32 AND NOT APPLE)
include_directories("${B64_INCLUDE}")
include_directories("${CURSES_INCLUDE_DIR}")
Expand All @@ -31,7 +35,6 @@ if(NOT WIN32 AND NOT APPLE)
include_directories("${PROTOBUF_INCLUDE}")
include_directories("${OPENSSL_INCLUDE_DIR}")
include_directories("${CURL_INCLUDE_DIR}")
include_directories("${CARES_INCLUDE}")
endif() # NOT MINIMAL_BUILD
include_directories("${JQ_INCLUDE}")
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
Expand Down
2 changes: 0 additions & 2 deletions userspace/libsinsp/addrinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef MINIMAL_BUILD
#include "addrinfo.h"

#include <ares.h>
Expand All @@ -38,4 +37,3 @@ void ares_cb(void *arg, int status, int timeouts, struct hostent *host)
res->done = true;
}
}
#endif // MINIMAL_BUILD
3 changes: 1 addition & 2 deletions userspace/libsinsp/addrinfo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
Copyright (C) 2020 Sysdig Inc.
Expand Down Expand Up @@ -33,4 +32,4 @@ struct ares_cb_result

void ares_cb(void *arg, int status, int timeouts, struct hostent *host);

#endif // MINIMAL_BUILD
#endif // MINIMAL_BUILD

0 comments on commit 73554b9

Please sign in to comment.