Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 1998 12:33:11 +0200 (CEST)
From:      Alexander Leidinger <netchild@wurzelausix.CS.Uni-SB.DE>
To:        freebsd-current@FreeBSD.ORG
Subject:   patch for rpcgen
Message-ID:  <199809231033.MAA17945@wurzelausix.cs.uni-sb.de>

next in thread | raw e-mail | index | archive | help
---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 <rpc/rpc.h>\n");
  
  	if (mtflag) {
+ #if !defined(__FreeBSD__) && !defined(__NetBSD__)
  		f_print(fout, "#include <synch.h>\n");
  		f_print(fout, "#include <thread.h>\n");
+ #else
+ 		f_print(fout, "#include <pthread.h>\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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809231033.MAA17945>