From c654d82fd28fa5205cb549c644975c9139136e14 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Fri, 20 Oct 2017 11:24:45 +0200 Subject: [PATCH] Fix `-Wtypedef-redefinition` for `struct ASYNCIO` Fixes #912. --- src/base/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/system.c b/src/base/system.c index 8d1d78b24..fbeb14397 100644 --- a/src/base/system.c +++ b/src/base/system.c @@ -448,7 +448,7 @@ int io_flush(IOHANDLE io) #define ASYNC_BUFSIZE 8 * 1024 -typedef struct ASYNCIO +struct ASYNCIO { LOCK lock; IOHANDLE io; @@ -465,7 +465,7 @@ typedef struct ASYNCIO int error; unsigned char finish; unsigned char refcount; -} ASYNCIO; +}; enum {