mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
23 lines
571 B
C
23 lines
571 B
C
|
// 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_
|
||
|
|
||
|
#include <stddef.h>
|
||
|
|
||
|
#include "build/build_config.h"
|
||
|
|
||
|
#if defined(OS_POSIX) && !defined(OS_NACL)
|
||
|
#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_POSIX) && !defined(OS_NACL)
|
||
|
|
||
|
#endif // NET_BASE_IOVEC_H_
|