mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add compatability with jansson 2.9
This commit is contained in:
parent
995ccb86e9
commit
b46eee0199
3 changed files with 8 additions and 11 deletions
|
@ -92,7 +92,7 @@ find_program(PROTOBUF_COMPILER NAMES protoc)
|
|||
|
||||
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig")
|
||||
|
||||
pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.10)
|
||||
pkg_check_modules(JANSSON IMPORTED_TARGET REQUIRED jansson>=2.9)
|
||||
pkg_check_modules(LIBWEBSOCKETS IMPORTED_TARGET REQUIRED libwebsockets>=2.3.0)
|
||||
pkg_check_modules(PROTOBUF IMPORTED_TARGET protobuf>=2.6.0)
|
||||
pkg_check_modules(PROTOBUFC IMPORTED_TARGET libprotobuf-c>=1.1.0)
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
#include <sstream>
|
||||
|
||||
#include <villas/compat.h>
|
||||
#include <villas/log.hpp>
|
||||
#include <villas/api/sessions/socket.hpp>
|
||||
|
||||
|
|
|
@ -413,19 +413,15 @@ int uldaq_check(struct node *n)
|
|||
Range ranges_se[num_ranges_se];
|
||||
|
||||
for (int i = 0; i < num_ranges_diff; i++) {
|
||||
long long rng;
|
||||
|
||||
err = ulAIGetInfo(u->device_handle, AI_INFO_DIFF_RANGE, i, &rng);
|
||||
|
||||
ranges_diff[i] = *(Range *) rng;
|
||||
err = ulAIGetInfo(u->device_handle, AI_INFO_DIFF_RANGE, i, (long long *) &ranges_diff[i]);
|
||||
if (err != ERR_NO_ERROR)
|
||||
return -1;
|
||||
}
|
||||
|
||||
for (int i = 0; i < num_ranges_se; i++) {
|
||||
long long rng;
|
||||
|
||||
err = ulAIGetInfo(u->device_handle, AI_INFO_SE_RANGE, i, &rng);
|
||||
|
||||
ranges_se[i] = *(Range *) rng;
|
||||
err = ulAIGetInfo(u->device_handle, AI_INFO_SE_RANGE, i, (long long *) &ranges_se[i]);
|
||||
if (err != ERR_NO_ERROR)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!has_ai) {
|
||||
|
|
Loading…
Add table
Reference in a new issue