Add missing includes and link dependencies for GCC 16
GCC 16 on Arch Linux no longer implicitly includes certain standard headers. This causes 'not declared' errors for POSIX functions. - PiPedalCommon/src/CMakeLists.txt: Link asound library for ALSA sequencer - DBusDispatcher.cpp: Add <unistd.h> for read()/write()/close() - AuxInTest.cpp: Add <unistd.h> for sleep() - kconfigMain.cpp: Add <unistd.h> for getuid() - ModFileTypes.cpp: Add <mutex> for std::mutex/std::lock_guard
This commit is contained in:
@@ -97,7 +97,7 @@ add_library(PiPedalCommon STATIC
|
||||
ss.hpp
|
||||
)
|
||||
target_include_directories(PiPedalCommon PUBLIC "include" ${LIBNL3_INCLUDE_DIRS})
|
||||
target_link_libraries(PiPedalCommon PUBLIC ${LIBNL3_LIBRARIES} sdbus-c++-objlib
|
||||
target_link_libraries(PiPedalCommon PUBLIC ${LIBNL3_LIBRARIES} sdbus-c++-objlib asound
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user