blob: c85893cf4d560a533cab37f20126fc132087569c [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001/*
Tom Cherry6f6ef392019-01-16 14:17:08 -08002 * Copyright (C) 2019 The Android Open Source Project
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Tom Cherrybab52202019-01-15 17:47:48 -080017#pragma once
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080018
Tom Cherry6f6ef392019-01-16 14:17:08 -080019#if defined(_WIN32)
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080020#include <stddef.h>
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080021struct iovec {
Mark Salyzyn2ed51d72017-03-09 08:09:43 -080022 void* iov_base;
23 size_t iov_len;
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080024};
Tom Cherry6f6ef392019-01-16 14:17:08 -080025#else
26#include <sys/uio.h>
Elliott Hughes111e3d32014-11-25 13:27:43 -080027#endif