OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_BASE_IOVEC_H_ | 5 #ifndef NET_BASE_IOVEC_H_ |
6 #define NET_BASE_IOVEC_H_ | 6 #define NET_BASE_IOVEC_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #if defined(OS_POSIX) && !defined(OS_NACL) | 10 #if defined(OS_POSIX) && !defined(OS_NACL) |
9 #include <sys/uio.h> | 11 #include <sys/uio.h> |
10 #else | 12 #else |
11 /* Structure for scatter/gather I/O. */ | 13 /* Structure for scatter/gather I/O. */ |
12 struct iovec { | 14 struct iovec { |
13 void* iov_base; /* Pointer to data. */ | 15 void* iov_base; /* Pointer to data. */ |
14 size_t iov_len; /* Length of data. */ | 16 size_t iov_len; /* Length of data. */ |
15 }; | 17 }; |
16 #endif // defined(OS_POSIX) && !defined(OS_NACL) | 18 #endif // defined(OS_POSIX) && !defined(OS_NACL) |
17 | 19 |
18 #endif // NET_BASE_IOVEC_H_ | 20 #endif // NET_BASE_IOVEC_H_ |
OLD | NEW |