mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 07:45:16 +08:00
net/usrsock/usrsock.h: Fix re-definitions of struct iovec.
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
#ifdef CONFIG_NET_USRSOCK
|
#ifdef CONFIG_NET_USRSOCK
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <sys/uio.h>
|
||||||
#include <queue.h>
|
#include <queue.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
|
|
||||||
@@ -85,12 +86,6 @@ enum usrsock_conn_state_e
|
|||||||
USRSOCK_CONN_STATE_CONNECTING,
|
USRSOCK_CONN_STATE_CONNECTING,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct iovec
|
|
||||||
{
|
|
||||||
FAR void *iov_base; /* Starting address */
|
|
||||||
size_t iov_len; /* Number of bytes to transfer */
|
|
||||||
};
|
|
||||||
|
|
||||||
struct usrsock_conn_s
|
struct usrsock_conn_s
|
||||||
{
|
{
|
||||||
dq_entry_t node; /* Supports a doubly linked list */
|
dq_entry_t node; /* Supports a doubly linked list */
|
||||||
|
|||||||
Reference in New Issue
Block a user