- fixes for Android + ongoing migration to latest resiprocate
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user