summaryrefslogtreecommitdiff
path: root/chromium/net/third_party/quiche/overrides/quiche_platform_impl/quiche_iovec_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/third_party/quiche/overrides/quiche_platform_impl/quiche_iovec_impl.h')
-rw-r--r--chromium/net/third_party/quiche/overrides/quiche_platform_impl/quiche_iovec_impl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/net/third_party/quiche/overrides/quiche_platform_impl/quiche_iovec_impl.h b/chromium/net/third_party/quiche/overrides/quiche_platform_impl/quiche_iovec_impl.h
new file mode 100644
index 00000000000..2eaa90bfc0d
--- /dev/null
+++ b/chromium/net/third_party/quiche/overrides/quiche_platform_impl/quiche_iovec_impl.h
@@ -0,0 +1,22 @@
+// 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_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_
+#define NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_
+
+#include <stddef.h>
+
+#include "build/build_config.h"
+
+#if BUILDFLAG(IS_WIN)
+/* Structure for scatter/gather I/O. */
+struct iovec {
+ void* iov_base; /* Pointer to data. */
+ size_t iov_len; /* Length of data. */
+};
+#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
+#include <sys/uio.h>
+#endif // BUILDFLAG(IS_WIN)
+
+#endif // NET_THIRD_PARTY_QUICHE_OVERRIDES_QUICHE_PLATFORM_IMPL_QUICHE_IOVEC_IMPL_H_