From 991d5a9c74f658225cc82e0b08d168c092eefdbe Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 7 Oct 2020 09:39:43 +0100 Subject: Add compat for getdtablesize, GitHub issue 2406. --- compat/imsg.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'compat/imsg.h') diff --git a/compat/imsg.h b/compat/imsg.h index 8bf94147..5b092cfc 100644 --- a/compat/imsg.h +++ b/compat/imsg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.h,v 1.4 2017/03/24 09:34:12 nicm Exp $ */ +/* $OpenBSD: imsg.h,v 1.5 2019/01/20 02:50:03 bcook Exp $ */ /* * Copyright (c) 2006, 2007 Pierre-Yves Ritschard @@ -21,13 +21,15 @@ #ifndef _IMSG_H_ #define _IMSG_H_ +#include + #define IBUF_READ_SIZE 65535 #define IMSG_HEADER_SIZE sizeof(struct imsg_hdr) #define MAX_IMSGSIZE 16384 struct ibuf { TAILQ_ENTRY(ibuf) entry; - u_char *buf; + unsigned char *buf; size_t size; size_t max; size_t wpos; @@ -42,8 +44,8 @@ struct msgbuf { }; struct ibuf_read { - u_char buf[IBUF_READ_SIZE]; - u_char *rptr; + unsigned char buf[IBUF_READ_SIZE]; + unsigned char *rptr; size_t wpos; }; -- cgit