xref: /aosp_15_r20/external/cronet/net/third_party/quiche/overrides/quiche_platform_impl/quiche_iovec_impl.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2013 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_
6 #define NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_
7 
8 #include <stddef.h>
9 
10 #include "build/build_config.h"
11 
12 #if BUILDFLAG(IS_WIN)
13 /* Structure for scatter/gather I/O.  */
14 struct iovec {
15   void* iov_base; /* Pointer to data.  */
16   size_t iov_len; /* Length of data.  */
17 };
18 #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
19 #include <sys/uio.h>
20 #endif  // BUILDFLAG(IS_WIN)
21 
22 #endif  // NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_
23