13551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)/* Copyright 2013 The Chromium Authors. All rights reserved.
22385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch * Use of this source code is governed by a BSD-style license that can be
32385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch * found in the LICENSE file. */
42385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
5c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#include <sys/types.h>
6c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch/*
7c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch * Include something that will define __BIONIC__, then wrap the entire file
8c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch * in this #if, so this file will be compiled on a non-bionic build.
9c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch */
10c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
11c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#if !defined(__BIONIC__)
12c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
132385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#include "nacl_io/kernel_intercept.h"
142385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch#include "nacl_io/kernel_wrap.h"
152385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
163551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)speed_t cfgetospeed(const struct termios *termios_p) {
173551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)  return termios_p->c_ospeed;
182385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch}
19c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch
20c5cede9ae108bb15f6b7a8aea21c7e1fefa2834cBen Murdoch#endif /* #if !defined(__BIONIC_) */