Use HOST_NAME_MAX instead of hardcoding the maximum hostname length

This commit is contained in:
Guillaume Meunier
2023-11-24 12:05:23 +01:00
parent d74512bebb
commit a1d8aef1d6
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ if(X264_FOUND)
target_link_libraries(wivrn-server PRIVATE PkgConfig::X264)
endif()
if(SYSTEMD_FOUND)
if(WIVRN_USE_SYSTEMD)
target_sources(wivrn-server PRIVATE hostname-sd.cpp)
target_link_libraries(wivrn-server PRIVATE PkgConfig::SYSTEMD)
else()