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