summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-07-11 02:29:18 +0000
committerRoland McGrath <roland@gnu.org>1999-07-11 02:29:18 +0000
commit33c9feeb41980211ae15a04fcccc6e77e23ecb80 (patch)
treed59b2a6b10ca3f5813803d8a9a60dd3604969a43 /libshouldbeinlibc
parent13e6be8b86ca31583d1ac414cc1bdfe7b2faf5a4 (diff)
1999-07-10 Roland McGrath <roland@baalperazim.frob.com>
* portinfo.h: Add #include <sys/mman.h> for munmap decl. * fsysops.c: Likewise. * idvec-auth.c: Likewise. * portxlate.c: Likewise.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r--libshouldbeinlibc/portxlate.c5
1 files 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 <malloc.h>
+#include <sys/mman.h>
#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