From 6007b4d97bc6332eaa831d3e9fdd0bad259e0bfe Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 12 Oct 2006 01:55:09 +0000 Subject: avoid EPROTO in case not there (Tim Wiess) --- src/cmd/9pfuse/errstr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cmd/9pfuse') diff --git a/src/cmd/9pfuse/errstr.c b/src/cmd/9pfuse/errstr.c index 9b132869..a51e337c 100644 --- a/src/cmd/9pfuse/errstr.c +++ b/src/cmd/9pfuse/errstr.c @@ -41,7 +41,11 @@ static Error errortab[] = { { "illegal", EINVAL }, { "read-only", EROFS }, { "read only", EROFS }, +#ifdef EPROTO { "proto", EPROTO }, +#else + { "proto", EINVAL }, +#endif { "entry", ENOENT }, }; -- cgit v1.2.3