diff options
author | Bill Paul <wpaul@FreeBSD.org> | 1998-01-19 17:19:09 +0000 |
---|---|---|
committer | Bill Paul <wpaul@FreeBSD.org> | 1998-01-19 17:19:09 +0000 |
commit | 813907f9ec2e49f9f87faac9335102030580fa32 (patch) | |
tree | ac6c3f4dea2b91f86c61e8e990fe9c3143031f00 /include/rpcsvc/Makefile | |
parent | 90e05a748a1017aed5ff5bcb5b436d29ccf5f0f6 (diff) | |
download | src-813907f9ec2e49f9f87faac9335102030580fa32.tar.gz src-813907f9ec2e49f9f87faac9335102030580fa32.zip |
Invoke rpcgen with -C so that headers are created with ANSI prototypes.
Note: this may cause some problems in a few cases. With very old versions
of rpcgen, if you defined a procedure called foo, then rpcen would create
client stubs for function foo_1() and server stubs _also_ with function
foo_1(). This only worked because of the lack of ANSI prototypes: the
client side stub takes different arguments than the server side stub.
(The client side takes a CLIENT * handle, while the server side wants
an svc_req *.)
To fix this conflict, rpcgen in ANSI mode generates foo_1() for the client
and foo_1_svc() for the server. RPC server code that depends on the old
behavior might break because of this. (Fixing it is just a matter of
adding the _svc suffix onto the server procedure names.)
Notes
Notes:
svn path=/head/; revision=32624
Diffstat (limited to 'include/rpcsvc/Makefile')
-rw-r--r-- | include/rpcsvc/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rpcsvc/Makefile b/include/rpcsvc/Makefile index ddf4c398e657..71cd96699519 100644 --- a/include/rpcsvc/Makefile +++ b/include/rpcsvc/Makefile @@ -1,9 +1,9 @@ # from: @(#)Makefile 2.3 88/08/11 4.0 RPCSRC -# $Id: Makefile,v 1.19 1997/09/16 10:52:59 bde Exp $ +# $Id: Makefile,v 1.20 1998/01/16 11:51:19 bde Exp $ .SUFFIXES: .x -RPCCOM = rpcgen +RPCCOM = rpcgen -C HDRS= key_prot.h klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rnusers.h \ rquota.h rstat.h rwall.h sm_inter.h spray.h yppasswd.h yp.h \ |