7308e58c3f
Previously we would compile in implementaitions of native calls for IO functions that would never be used. This CL provides implementations that throw a Dart exception if they're called by mistake. It also uses a DART_IO_DISABLED preprocessor define to clean up the build files and check that we're not including code we shouldn't. R=iposva@google.com, johnmccutchan@google.com Review URL: https://codereview.chromium.org/1839463002 .
17 lines
477 B
C
17 lines
477 B
C
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#ifndef BIN_SOCKET_ANDROID_H_
|
|
#define BIN_SOCKET_ANDROID_H_
|
|
|
|
#if !defined(BIN_SOCKET_H_)
|
|
#error Do not include socket_android.h directly. Use socket.h.
|
|
#endif
|
|
|
|
#include <arpa/inet.h>
|
|
#include <netdb.h>
|
|
#include <sys/socket.h>
|
|
|
|
#endif // BIN_SOCKET_ANDROID_H_
|