From e1803dc145aaecd531fb081de2b9e354fe27fda7 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 22 Dec 2020 18:41:33 +0100 Subject: [PATCH] programs/prog_util.h: include sys/types.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include sys/types.h to avoid the following build failure on uclibc: In file included from programs/gzip.c:28:0: programs/prog_util.h:159:1: error: unknown type name ‘ssize_t’ ssize_t xread(struct file_stream *strm, void *buf, size_t count); ^ Signed-off-by: Fabrice Fontaine --- programs/prog_util.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/programs/prog_util.h b/programs/prog_util.h index c50cbe4..fa3f7b5 100644 --- a/programs/prog_util.h +++ b/programs/prog_util.h @@ -38,6 +38,9 @@ #include #include #include +#ifndef _WIN32 +# include +#endif #include "../common/common_defs.h"