diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-22 02:07:14 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-08-22 02:07:14 +0200 |
commit | 3b378a6535bc8d9942875ba094301274819905e4 (patch) | |
tree | f6d9cf51c64f56c1b12dd7fb99ca7ba38b79e53c /nfs | |
parent | cd10e825fe4b5458c0deaa300449e0cd872570ef (diff) | |
download | hurd-3b378a6535bc8d9942875ba094301274819905e4.tar.gz hurd-3b378a6535bc8d9942875ba094301274819905e4.tar.bz2 hurd-3b378a6535bc8d9942875ba094301274819905e4.zip |
nfs/nfsd: Use libtirpc
Sun RPC is being phased out from glibc.
* configure.ac: Detect libtirpc.pc, subst libtirpc_CFLAGS and libtirpc_LIBS.
* config.make.in: Subst libtirpc_CFLAGS and libtirpc_LIBS.
* nfs/Makefile, nfsd/Makefile: Include libtirpc_CFLAGS and libtirpc_LIBS
* nfs/mount.c: Include <rpc/xdr.h>
* nfsd/main.c: Likewise.
* nfsd/ops.c: Likewise.
* nfsd/cache.c: Undef TRUE/FALSE after including rpc/ headers.
* nfsd/loop.c: Likewise.
Diffstat (limited to 'nfs')
-rw-r--r-- | nfs/Makefile | 3 | ||||
-rw-r--r-- | nfs/mount.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/nfs/Makefile b/nfs/Makefile index 265d0273..32cf4f53 100644 --- a/nfs/Makefile +++ b/nfs/Makefile @@ -30,3 +30,6 @@ HURDLIBS = netfs fshelp iohelp ports ihash shouldbeinlibc LDLIBS = -lpthread include ../Makeconf + +CFLAGS += $(libtirpc_CFLAGS) +LDLIBS += $(libtirpc_LIBS) diff --git a/nfs/mount.c b/nfs/mount.c index 29b203aa..f8318c27 100644 --- a/nfs/mount.c +++ b/nfs/mount.c @@ -20,6 +20,7 @@ #define malloc a_byte_for_every_bozotic_sun_lossage_and_youd_need_a_lotta_ram #include <rpc/types.h> +#include <rpc/xdr.h> #undef TRUE /* Get rid of sun defs. */ #undef FALSE #undef malloc |