- fixes for Android + ongoing migration to latest resiprocate

This commit is contained in:
2023-05-14 12:04:49 +03:00
parent 0eb5ad7cf7
commit dd6c01ca0d
8960 changed files with 133 additions and 2018592 deletions

View File

@@ -40,7 +40,7 @@ target_include_directories(srtp PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/crypto/include
)
if (CMAKE_SYSTEM MATCHES "Linux*" OR CMAKE_SYSTEM MATCHES "Darwin*")
if (CMAKE_SYSTEM MATCHES "Linux*" OR CMAKE_SYSTEM MATCHES "Darwin*" OR ANDROID_ABI)
set (PLATFORM_DEFINES HAVE_NETINET_IN_H)
else()
set (PLATFORM_DEFINES HAVE_WINSOCK2_H)

View File

@@ -403,6 +403,10 @@ static inline uint32_t be32_to_cpu(uint32_t v) {
# else /* HAVE_X86 */
# ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
# include <arpa/inet.h>
# if defined(TARGET_ANDROID)
# include <sys/endian.h>
# endif
# elif defined HAVE_WINSOCK2_H
# include <winsock2.h>
# endif