diff options
author | 2017-10-17 01:55:57 +0000 | |
---|---|---|
committer | 2017-10-17 01:55:57 +0000 | |
commit | 9e8160cf7ed8e822143e29b6e470f4daf78a3860 (patch) | |
tree | f6f86d96a0eb4f912ea1a7ed1a69ff5088d213eb | |
parent | e37cf6f65978d230bfdaacf21e216d73949a56e1 (diff) |
Fix compile warning under Emscripten (#2552) (submitted to upstream asio) (nw)
-rw-r--r-- | 3rdparty/asio/include/asio/detail/socket_types.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/3rdparty/asio/include/asio/detail/socket_types.hpp b/3rdparty/asio/include/asio/detail/socket_types.hpp index 3114c08fa2e..60c5929e828 100644 --- a/3rdparty/asio/include/asio/detail/socket_types.hpp +++ b/3rdparty/asio/include/asio/detail/socket_types.hpp @@ -57,7 +57,12 @@ # include "asio/detail/old_win_sdk_compat.hpp" #else # include <sys/ioctl.h> -# if !defined(__SYMBIAN32__) +# if (defined(__MACH__) && defined(__APPLE__)) \ + || defined(__FreeBSD__) || defined(__NetBSD__) \ + || defined(__OpenBSD__) || defined(__linux__) \ + || defined(__EMSCRIPTEN__) +# include <poll.h> +# elif !defined(__SYMBIAN32__) # include <sys/poll.h> # endif # include <sys/types.h> |