xref: /aosp_15_r20/external/ltp/include/lapi/iovec.h (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker // SPDX-License-Identifier: GPL-2.0-or-later
2*49cdfc7eSAndroid Build Coastguard Worker /*
3*49cdfc7eSAndroid Build Coastguard Worker  * Copyright (c) 2014 Cyril Hrubis <[email protected]>
4*49cdfc7eSAndroid Build Coastguard Worker  */
5*49cdfc7eSAndroid Build Coastguard Worker 
6*49cdfc7eSAndroid Build Coastguard Worker #ifndef LAPI_IOVEC_H__
7*49cdfc7eSAndroid Build Coastguard Worker #define LAPI_IOVEC_H__
8*49cdfc7eSAndroid Build Coastguard Worker 
9*49cdfc7eSAndroid Build Coastguard Worker #include "config.h"
10*49cdfc7eSAndroid Build Coastguard Worker 
11*49cdfc7eSAndroid Build Coastguard Worker #if !defined(HAVE_STRUCT_IOVEC)
12*49cdfc7eSAndroid Build Coastguard Worker struct iovec {
13*49cdfc7eSAndroid Build Coastguard Worker 	void *iov_base;
14*49cdfc7eSAndroid Build Coastguard Worker 	size_t iov_len;
15*49cdfc7eSAndroid Build Coastguard Worker };
16*49cdfc7eSAndroid Build Coastguard Worker #else
17*49cdfc7eSAndroid Build Coastguard Worker # include <sys/uio.h>
18*49cdfc7eSAndroid Build Coastguard Worker #endif
19*49cdfc7eSAndroid Build Coastguard Worker 
20*49cdfc7eSAndroid Build Coastguard Worker #endif /* LAPI_IOVEC_H__ */
21