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:
Leonard Hecker 2014-08-10 17:25:09 +02:00
parent ca4741b4a5
commit 4c90cc8e14

View File

@ -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;