diff options
author | Jiyong Park <jiyong@google.com> | 2020-09-18 16:25:46 +0900 |
---|---|---|
committer | Jiyong Park <jiyong@google.com> | 2020-09-18 16:29:28 +0900 |
commit | 59ace3a02d74288783e969331a22c250e2f86600 (patch) | |
tree | 0156172811c96bc5bab70721dacd56edc7dfdac1 | |
parent | 3fbab929b2cba1da6dd27b76583d3bcd187af4d9 (diff) | |
download | libwebsockets-59ace3a02d74288783e969331a22c250e2f86600.tar.gz |
Include the bionic headers when built for linux_bionic targets
Previously, android (the device target) was the only target using bionic
as libc. Now, linux_bionic-(x86_64|arm64) are another targets where
bionic headers need to be included.
__ANDROID__ is defined only for the device target. Use the headers also
when __BIONIC__ is defined, which is turned on when bionic is used.
Bug: 159685774
Test: HOST_CROSS_OS=linux_bionic HOST_CROSS_ARCH=arm64 m \
out/soong/host/linux_bionic-arm64/bin/webRTC
Change-Id: I4b1130423fbfa7c466018527c5f60dc62970ca22
-rw-r--r-- | include/libwebsockets.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libwebsockets.h b/include/libwebsockets.h index 8b26586e..4b97e8db 100644 --- a/include/libwebsockets.h +++ b/include/libwebsockets.h @@ -166,7 +166,7 @@ typedef unsigned long long lws_intptr_t; #define LWS_FORMAT(string_index) #endif -#if defined(__ANDROID__) +#if defined(__ANDROID__) || defined(__BIONIC__) #include <netinet/in.h> #include <unistd.h> #endif |