Skip to content

Commit

Permalink
Fic macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnz committed Feb 15, 2021
1 parent a4400cb commit c8e371c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deps/libimobiledevice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ if(WIN32)
target_link_libraries(libimobiledevice PRIVATE Crypt32 ws2_32)
endif()

check_function_exists(stpcpy HAVE_STPCPY)
if(${HAVE_STPCPY})
add_compile_definitions(libimobiledevice HAVE_STPCPY)
endif()

check_function_exists(stpncpy HAVE_STPNCPY)
if(${HAVE_STPNCPY})
add_compile_definitions(libimobiledevice HAVE_STPNCPY)
Expand Down

0 comments on commit c8e371c

Please sign in to comment.