From 878fbf64ac115f49e9febd981da9fd99080e0eb9 Mon Sep 17 00:00:00 2001 From: Felix von Leitner Date: Wed, 5 May 2004 20:01:40 +0000 Subject: [PATCH] bsd compat --- io/io_passfd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/io/io_passfd.c b/io/io_passfd.c index 53d0cf3..6f8168f 100644 --- a/io/io_passfd.c +++ b/io/io_passfd.c @@ -6,7 +6,9 @@ union fdmsg { struct cmsghdr h; - char buf[CMSG_SPACE(sizeof(int))]; + /* on NetBSD, CMSG_SPACE is not constant */ +/* char buf[CMSG_SPACE(sizeof(int))]; */ + char buf[1000]; }; int io_passfd(int64 sock,int64 fd) {