unix: fix typedef of uv_buf_t
Typedefs of unnamed structs cannot be forward declared. Giving the uv_buf_t struct a name makes forward declarations possible.
This commit is contained in:
parent
ca4741b4a5
commit
4c90cc8e14
@ -117,7 +117,7 @@ struct uv__async {
|
||||
#endif
|
||||
|
||||
/* Note: May be cast to struct iovec. See writev(2). */
|
||||
typedef struct {
|
||||
typedef struct uv_buf_t {
|
||||
char* base;
|
||||
size_t len;
|
||||
} uv_buf_t;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user