From e62c3cf350a8b169e6401d5f1e1f17388cdc4b77 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 31 Jan 2020 18:48:06 +0100 Subject: [PATCH] util/os_socket: Include unistd.h to fix build error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes In file included from ../src/util/os_socket.c:8: ../src/util/os_socket.h:26:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’? ssize_t os_socket_recv(int socket, void *buffer, size_t length, int flags); seen with gcc version 8.3.0 (Buildroot 2019.11) and uClibc 1.0.32. Reviewed-by: Eric Engestrom Fixes: ef5266ebd50e7fa65c56 ("util/os_socket: Add socket related functions.") Tested-by: Marge Bot Part-of: --- src/util/os_socket.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/os_socket.h b/src/util/os_socket.h index 0d6f874..db0dc90 100644 --- a/src/util/os_socket.h +++ b/src/util/os_socket.h @@ -10,6 +10,7 @@ #include #include +#include #ifdef _MSC_VER #include typedef SSIZE_T ssize_t; -- 2.7.4