Skip to content

Commit

Permalink
[Android] Fix NetworkInterface.GetAllNetworkInterfaces on API 21-23 (d…
Browse files Browse the repository at this point in the history
…otnet#76541)

* Bring back pal_ifaddrs

* Update the header file
  • Loading branch information
simonrozsival authored Oct 3, 2022
1 parent 32e856a commit e2e4e71
Show file tree
Hide file tree
Showing 4 changed files with 804 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/native/libs/System.Native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ append_extra_system_libs(NATIVE_LIBS_EXTRA)

if (CLR_CMAKE_TARGET_ANDROID AND NOT HAVE_GETIFADDRS)
add_definitions(-DANDROID_GETIFADDRS_WORKAROUND)
add_compile_options(-Wno-gnu-zero-variadic-macro-arguments)

list (APPEND NATIVE_LIBS_EXTRA -llog)
list (APPEND NATIVE_SOURCES pal_ifaddrs.c)
endif ()

if (GEN_SHARED_LIB)
Expand Down
Loading

0 comments on commit e2e4e71

Please sign in to comment.