From owner-freebsd-current Wed Sep 23 03:33:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA26932 for freebsd-current-outgoing; Wed, 23 Sep 1998 03:33:39 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA26915 for ; Wed, 23 Sep 1998 03:33:25 -0700 (PDT) (envelope-from netchild@wurzelausix.CS.Uni-SB.DE) Received: from cs.uni-sb.de (cs.uni-sb.de [134.96.252.31]) by uni-sb.de (8.9.0/1998052000) with ESMTP id MAA02979 for ; Wed, 23 Sep 1998 12:33:18 +0200 (CEST) Received: from wurzelausix.cs.uni-sb.de (LsMZh3LhorjhZ7rbTY9T1fSuU9mUeEVn@wurzelausix.cs.uni-sb.de [134.96.247.1]) by cs.uni-sb.de (8.9.0/1998060300) with ESMTP id MAA08016 for ; Wed, 23 Sep 1998 12:33:17 +0200 (CEST) Received: from wurzelausix.cs.uni-sb.de (IDENT:zidi47q9ovYh87dl+DxOOl76+B5irgCE@localhost [127.0.0.1]) by wurzelausix.cs.uni-sb.de (8.9.1/wjp/19980821) with ESMTP id MAA17945 for ; Wed, 23 Sep 1998 12:33:13 +0200 (CEST) Message-Id: <199809231033.MAA17945@wurzelausix.cs.uni-sb.de> Date: Wed, 23 Sep 1998 12:33:11 +0200 (CEST) From: Alexander Leidinger Subject: patch for rpcgen To: freebsd-current@FreeBSD.ORG MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY="-559023410-851401618-906546796=:15001" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ---559023410-851401618-906546796=:15001 Content-Type: TEXT/plain; CHARSET=US-ASCII Hi, attached is a patch for rpcgen, which solves my problems described in a mail some days ago. The ifdef NetBSD is only an assumption, I've seen it everywhere with ifdef FreeBSD. Comments (at least a "committed", please)? Bye, Alexander. -- 2^{F_{h+1}-1} z^{F_{h+2}-1} + 2^{F_{h+1}-2} L_{h-1} z^{F_{h+2}} + complicated terms + 2^{h-1} z^{2^h - 2} + z^{2^h - 1} Donald E. Knuth, "The Art of Computer Programming" http://fsinfo.cs.uni-sb.de/~netchild netchild@wurzelausix.cs.uni-sb.de ---559023410-851401618-906546796=:15001 Content-Type: TEXT/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 8BIT Content-Description: rpcgen.patch *** /usr/src/usr.bin/rpcgen/rpc_clntout.c Fri Jul 12 21:05:47 1996 --- ./rpc_clntout.c Wed Sep 23 11:49:36 1998 *************** *** 266,272 **** RESULT); if (mtflag) ! f_print(fout, "\n\t\tTIMEOUT));\n}\n"); else f_print(fout, "\n\t\tTIMEOUT) != RPC_SUCCESS) {\n"); --- 266,272 ---- RESULT); if (mtflag) ! f_print(fout, "\n\t\tTIMEOUT));\n"); else f_print(fout, "\n\t\tTIMEOUT) != RPC_SUCCESS) {\n"); *** /usr/src/usr.bin/rpcgen/rpc_main.c Sat Mar 7 06:43:59 1998 --- ./rpc_main.c Wed Sep 23 11:40:18 1998 *************** *** 548,555 **** --- 548,559 ---- f_print(fout, "#include \n"); if (mtflag) { + #if !defined(__FreeBSD__) && !defined(__NetBSD__) f_print(fout, "#include \n"); f_print(fout, "#include \n"); + #else + f_print(fout, "#include \n"); + #endif }; /* put the C++ support */ ---559023410-851401618-906546796=:15001-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message