From owner-freebsd-hackers Fri Apr 14 12:23: 6 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from quack.kfu.com (quack.kfu.com [170.1.70.2]) by hub.freebsd.org (Postfix) with ESMTP id 32C1C37B5F2 for ; Fri, 14 Apr 2000 12:23:04 -0700 (PDT) (envelope-from nsayer@medusa.kfu.com) Received: from medusa.kfu.com (medusa.kfu.com [170.1.70.5]) by quack.kfu.com (8.9.2/8.9.3) with ESMTP id MAA49052 for ; Fri, 14 Apr 2000 12:23:01 -0700 (PDT) (envelope-from nsayer@medusa.kfu.com) Received: (from nsayer@localhost) by medusa.kfu.com (8.9.3/8.8.8) id MAA78861 for freebsd-hackers@freebsd.org; Fri, 14 Apr 2000 12:22:30 -0700 (PDT) (envelope-from nsayer) Date: Fri, 14 Apr 2000 12:22:30 -0700 (PDT) From: Nick Sayer Message-Id: <200004141922.MAA78861@medusa.kfu.com> To: freebsd-hackers@freebsd.org Subject: XDR porting problems Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG in RELENG_4, /usr/src/include/rpc/xdr.h, there is... #ifdef _KERNEL typedef bool_t (*xdrproc_t) __P((XDR *, void *, u_int)); #else /* * XXX can't actually prototype it, because some take two args!!! */ typedef bool_t (*xdrproc_t) __P((/* XDR *, void *, u_int */)); #endif This causes heartburn for a program I'm trying to port. Specifically, compiling a .cxx says that I am using too many arguments. Changing the 2nd typedef to typedef bool_t (*xdrproc_t) __P((XDR *, void *, ...)); fixes this. I am not enough of a language pedant to understand all possible ramifications of this change. Can anyone suggest any alternatives? I dug around quite a bit and could find no way to compile the code in question without changing the system include files. If this is the right thing to do, I would like to commit it. If there is a better thing to do, I'd like to hear about it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message