1c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch/* Copyright 2013 The Chromium Authors. All rights reserved.
2c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch * Use of this source code is governed by a BSD-style license that can be
3c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch * found in the LICENSE file. */
4c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
5c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#include <sys/types.h>
6c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
7c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch/*
8c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch * Include something that will define __BIONIC__, then wrap the entire file
9c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch * in this #if, so this file will be compiled on a non-bionic build.
10c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch */
11c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
12c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#if !defined(__BIONIC__)
13bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch
14bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch#include "nacl_io/kernel_intercept.h"
15bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch#include "nacl_io/ostermios.h"
16bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch
17bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdochint tcgetattr(int fd, struct termios* termios_p) {
18bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch  return ki_tcgetattr(fd, termios_p);
19bb1529ce867d8845a77ec7cdf3e3003ef1771a40Ben Murdoch}
20c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
21c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#endif /* #if !defined(__BIONIC_) */