mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-02 03:40:12 +00:00
Fix systemd linkage
This commit is contained in:
parent
52b175772f
commit
3d44e58e34
@ -165,7 +165,7 @@ lokinet_add_library(lokinet-dns
|
||||
# platform specific bits and bobs for setting dns
|
||||
add_library(lokinet-dns-platform INTERFACE)
|
||||
if(WITH_SYSTEMD)
|
||||
add_library(lokinet-dns-systemd STATIC dns/nm_platform.cpp dns/sd_platform.cpp)
|
||||
lokinet_add_library(lokinet-dns-systemd dns/nm_platform.cpp dns/sd_platform.cpp)
|
||||
target_link_libraries(lokinet-dns-platform INTERFACE lokinet-dns-systemd)
|
||||
endif()
|
||||
|
||||
@ -222,9 +222,6 @@ target_link_libraries(lokinet-core PUBLIC lokinet-core-utils)
|
||||
|
||||
# Link lokinet-dns to alternate libraries
|
||||
target_link_libraries(lokinet-dns PUBLIC lokinet-dns-platform)
|
||||
if (TARGET lokinet-dns-systemd)
|
||||
target_link_libraries(lokinet-dns PUBLIC lokinet-dns-systemd)
|
||||
endif()
|
||||
|
||||
target_link_libraries(lokinet-wire PUBLIC lokinet-time-place)
|
||||
target_link_libraries(lokinet-dns PUBLIC lokinet-utils lokinet-cryptography lokinet-config)
|
||||
|
@ -228,7 +228,10 @@ namespace llarp
|
||||
bool decode_result = DecodeVersion_1(btlist);
|
||||
|
||||
// advance the llarp_buffer_t since lokimq serialization is unaware of it.
|
||||
buf->cur += btlist.current_buffer().data() - buf_view.data() + 1;
|
||||
// FIXME: this is broken (current_buffer got dropped), but the whole thing is getting
|
||||
// replaced.
|
||||
// buf->cur += btlist.
|
||||
// current_buffer().data() - buf_view.data() + 1;
|
||||
|
||||
return decode_result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user