From 4c90cc8e14e4d45f6d7896e61a2588e602f89d48 Mon Sep 17 00:00:00 2001 From: Leonard Hecker Date: Sun, 10 Aug 2014 17:25:09 +0200 Subject: [PATCH] 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. --- include/uv-unix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uv-unix.h b/include/uv-unix.h index bbaaefc3e..f04bed434 100644 --- a/include/uv-unix.h +++ b/include/uv-unix.h @@ -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;