From 33c9feeb41980211ae15a04fcccc6e77e23ecb80 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 11 Jul 1999 02:29:18 +0000 Subject: 1999-07-10 Roland McGrath * portinfo.h: Add #include for munmap decl. * fsysops.c: Likewise. * idvec-auth.c: Likewise. * portxlate.c: Likewise. --- libshouldbeinlibc/portxlate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libshouldbeinlibc/portxlate.c b/libshouldbeinlibc/portxlate.c index 087e0850..9f222539 100644 --- a/libshouldbeinlibc/portxlate.c +++ b/libshouldbeinlibc/portxlate.c @@ -19,12 +19,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include +#include #include "portxlate.h" /* Return a new port name translator translating names between FROM_TASK and TO_TASK, in XLATOR, or an error. */ -error_t +error_t port_name_xlator_create (mach_port_t from_task, mach_port_t to_task, struct port_name_xlator **xlator) { @@ -122,7 +123,7 @@ port_name_xlator_xlate (struct port_name_xlator *x, return EKERN_INVALID_RIGHT; /* Translate the name FROM, in FROM_TASK's namespace into our namespace. */ - err = + err = mach_port_extract_right (x->from_task, from, ((from_type & MACH_PORT_TYPE_RECEIVE) ? MACH_MSG_TYPE_MAKE_SEND -- cgit v1.2.3