From 04db20c2fb450fc27300991eb029888487b580a0 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 19 Oct 2011 23:34:40 +0200 Subject: Fix building of nfs.static. * nfs/Makefile (HURDLIBS): Add ihash (for ports). * nfs/ops.c (netfs_set_translator): Don't define. It is the EOPNOTSUPP stub that is already being defined in libnetfs/set-get-trans.c. --- nfs/Makefile | 6 +++--- nfs/ops.c | 13 +------------ 2 files changed, 4 insertions(+), 15 deletions(-) (limited to 'nfs') diff --git a/nfs/Makefile b/nfs/Makefile index d6b8c9c0..10ca2587 100644 --- a/nfs/Makefile +++ b/nfs/Makefile @@ -1,6 +1,6 @@ # -# Copyright (C) 1995, 1996, 1997, 2000, 2001, 2008 Free Software Foundation, -# Inc. +# Copyright (C) 1995, 1996, 1997, 2000, 2001, 2008, 2011 Free Software +# Foundation, Inc. # # Written by Michael I. Bushnell. # @@ -28,6 +28,6 @@ LCLHDRS = nfs.h mount.h nfs-spec.h SRCS = ops.c rpc.c mount.c nfs.c cache.c consts.c main.c name-cache.c \ storage-info.c OBJS = $(SRCS:.c=.o) -HURDLIBS = netfs fshelp iohelp threads ports shouldbeinlibc +HURDLIBS = netfs fshelp iohelp threads ports ihash shouldbeinlibc include ../Makeconf diff --git a/nfs/ops.c b/nfs/ops.c index 96190d2e..05cfbe9a 100644 --- a/nfs/ops.c +++ b/nfs/ops.c @@ -1,5 +1,5 @@ /* ops.c - Libnetfs callbacks for node operations in NFS client. - Copyright (C) 1994,95,96,97,99,2002 Free Software Foundation, Inc. + Copyright (C) 1994,95,96,97,99,2002,2011 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -1881,17 +1881,6 @@ netfs_get_dirents (struct iouser *cred, struct node *np, } -/* Implement the netfs_set_translator callback as described in - . */ -error_t -netfs_set_translator (struct iouser *cred, - struct node *np, - char *argz, - size_t argzlen) -{ - return EOPNOTSUPP; -} - /* Implement the netfs_attempt_mksymlink callback as described in . */ error_t -- cgit v1.2.3