Replace <rpc/types.h> with <rx/xdr.h> 00/12800/5
authorBenjamin Kaduk <kaduk@mit.edu>
Sat, 9 Dec 2017 17:37:59 +0000 (11:37 -0600)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 9 Jan 2018 02:32:40 +0000 (21:32 -0500)
commite443a9fb67dbc29e6cc36661a4ac6e91af113f23
tree409e340bee8909e6d7bde57d5af57733590c99cc
parentafbc199f152cc06edc877333f229604c28638d07
Replace <rpc/types.h> with <rx/xdr.h>

Our in-tree xdr.h appears to have started life as a concatenation of
rpc/types.h and rpc/xdr.h, and should include all the needed functionality.
Indeed, commit 7293ddf325b149cae60d3abe7199d08f196bd2b9 even indicates
that we expect to be using our in-tree XDR everywhere anyway, so the
system XDR is superfluous.

Note that afs/sysincludes.h (not afsincludes.h!) already includes
rx/xdr.h ifndef AFS_LINUX22_ENV.

This change should help systems running glibc 2.26 or newer, which has
stopped providing the Sun RPC headers by default.

While here remove some duplicate includes of rpc/types.h in the
AIX-specific sources.

The Solaris NFS translator bits cannot really be changed, since the system
headers are used and have tight interdependencies.

Update rxgen to not emit rpc/types.h inclusion.

[mmeffie: squash 12801 to not emit rpc/types.h from rxgen]

Change-Id: I0b195216affa06ab9e259cb0bab0c8286a1636d9
Reviewed-on: https://gerrit.openafs.org/12800
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/AIX/osi_misc.c
src/afs/AIX/osi_vnodeops.c
src/afs/afs_fetchstore.c
src/afs/afs_memcache.c
src/afs/afs_nfsdisp.c
src/afs/sysincludes.h
src/fsint/afsaux.c
src/rx/rx_kcommon.h
src/rx/xdr_rx.c
src/rxgen/rpc_main.c