Index: third_party/libevent/libevent.gyp |
diff --git a/third_party/libevent/libevent.gyp b/third_party/libevent/libevent.gyp |
index bfb7f563930f62badb531b004b2a1789af33819c..0f8c31c023dcc85149f11ca035311fcfee309022 100644 |
--- a/third_party/libevent/libevent.gyp |
+++ b/third_party/libevent/libevent.gyp |
@@ -36,7 +36,7 @@ |
# libevent has platform-specific implementation files. Since its |
# native build uses autoconf, platform-specific config.h files are |
# provided and live in platform-specific directories. |
- [ 'OS == "linux"', { |
+ [ 'OS == "linux" or (OS == "android" and _toolset == "host")', { |
'sources': [ 'epoll.c', 'epoll_sub.c' ], |
'include_dirs': [ 'linux' ], |
'link_settings': { |
@@ -47,7 +47,7 @@ |
], |
}, |
}], |
- [ 'OS == "android"', { |
+ [ 'OS == "android" and _toolset == "target"', { |
# On android, epoll_create(), epoll_ctl(), epoll_wait() and |
# clock_gettime() are all in libc.so, so no need to add |
# epoll_sub.c and link librt. |