summaryrefslogtreecommitdiffstats
path: root/net/base/iovec.h
blob: f1a85e3b53cfe3c84b4999ff1cbdfd9c727ebabf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef NET_BASE_IOVEC_H_
#define NET_BASE_IOVEC_H_

#if defined(OS_POSIX)
#include <sys/uio.h>
#else
/* Structure for scatter/gather I/O.  */
struct iovec {
  void* iov_base;  /* Pointer to data.  */
  size_t iov_len;  /* Length of data.  */
};
#endif  // defined(OS_LINUX)

#endif  // NET_BASE_IOVEC_H_