Chromium Code Reviews| Index: runtime/bin/socket.h |
| diff --git a/runtime/bin/socket.h b/runtime/bin/socket.h |
| index b058a51c203a7f15f516ef9b4a334161781f94f4..2cf940c54d90669d49b62676a7c0ff02df1f3a28 100644 |
| --- a/runtime/bin/socket.h |
| +++ b/runtime/bin/socket.h |
| @@ -5,12 +5,11 @@ |
| #ifndef BIN_SOCKET_H_ |
| #define BIN_SOCKET_H_ |
| -#include <map> |
| +#if defined(DART_IO_DISABLED) |
|
Bill Hesse
2016/03/30 09:50:27
This error is being hit on Windows compilations of
|
| +#error "socket.h can only be included on builds with IO enabled" |
| +#endif |
| #include "platform/globals.h" |
| - |
| -#include "bin/builtin.h" |
| -#include "bin/dartutils.h" |
| // Declare the OS-specific types ahead of defining the generic class. |
| #if defined(TARGET_OS_ANDROID) |
| #include "bin/socket_android.h" |
| @@ -23,6 +22,11 @@ |
| #else |
| #error Unknown target os. |
| #endif |
| + |
| +#include <map> |
| + |
| +#include "bin/builtin.h" |
| +#include "bin/dartutils.h" |
| #include "bin/thread.h" |
| #include "bin/utils.h" |