From 7fdaac9327597784370d6bbe34c531b6ba6903d2 Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Thu, 21 Aug 2025 09:02:26 -0600 Subject: [PATCH] Include cstring for Linux cpp build --- cpp/CMakeLists.txt | 2 ++ cpp/src/diagnosticsservice.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index ea895be..0bbee44 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -50,6 +50,8 @@ set_target_properties(idevice_ffi PROPERTIES IMPORTED_LOCATION "${IDEVICE_FFI_PATH}" ) +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/../ffi/idevice.h" "${CMAKE_CURRENT_SOURCE_DIR}/include" COPYONLY) + # ---- Our C++ library ------------------------------------------------------- # Collect sources (convenience: tracks new files when you re-run CMake) diff --git a/cpp/src/diagnosticsservice.cpp b/cpp/src/diagnosticsservice.cpp index 26aa91e..f67d866 100644 --- a/cpp/src/diagnosticsservice.cpp +++ b/cpp/src/diagnosticsservice.cpp @@ -1,6 +1,7 @@ // Jackson Coxson #include +#include namespace IdeviceFFI {