Fix Windows build:
- Missed a OS dependent file. Review URL: https://codereview.chromium.org//12315020 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18798 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
// 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.
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "platform/globals.h"
|
||||
#if defined(TARGET_OS_ANDROID)
|
||||
|
||||
#include <errno.h> // NOLINT
|
||||
#include <fcntl.h> // NOLINT
|
||||
#include <unistd.h> // NOLINT
|
||||
#include <sys/ioctl.h> // NOLINT
|
||||
|
||||
#include "bin/fdutils.h"
|
||||
|
||||
@@ -132,3 +135,5 @@ ssize_t FDUtils::WriteToBlocking(int fd, const void* buffer, size_t count) {
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_OS_ANDROID)
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
// 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.
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "platform/globals.h"
|
||||
#if defined(TARGET_OS_LINUX)
|
||||
|
||||
#include <errno.h> // NOLINT
|
||||
#include <fcntl.h> // NOLINT
|
||||
#include <unistd.h> // NOLINT
|
||||
#include <sys/ioctl.h> // NOLINT
|
||||
|
||||
#include "bin/fdutils.h"
|
||||
|
||||
@@ -132,3 +135,5 @@ ssize_t FDUtils::WriteToBlocking(int fd, const void* buffer, size_t count) {
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_OS_LINUX)
|
||||
|
||||
@@ -2,10 +2,13 @@
|
||||
// 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.
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include "platform/globals.h"
|
||||
#if defined(TARGET_OS_MACOS)
|
||||
|
||||
#include <errno.h> // NOLINT
|
||||
#include <fcntl.h> // NOLINT
|
||||
#include <unistd.h> // NOLINT
|
||||
#include <sys/ioctl.h> // NOLINT
|
||||
|
||||
#include "bin/fdutils.h"
|
||||
|
||||
@@ -133,3 +136,5 @@ ssize_t FDUtils::WriteToBlocking(int fd, const void* buffer, size_t count) {
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_OS_MACOS)
|
||||
|
||||
Reference in New Issue
Block a user