summaryrefslogtreecommitdiff
path: root/libtrivfs/handle-port.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs/handle-port.c')
-rw-r--r--libtrivfs/handle-port.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libtrivfs/handle-port.c b/libtrivfs/handle-port.c
index 13fb5e32..17952480 100644
--- a/libtrivfs/handle-port.c
+++ b/libtrivfs/handle-port.c
@@ -15,12 +15,15 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include <priv.h>
+
mach_port_t
trivfs_handle_port (mach_port_t realnode)
{
struct trivfs_control *cntl;
- cntl = ports_allocate_port (sizeof (struct control), trivfs_cntl_porttype);
+ cntl = ports_allocate_port (sizeof (struct trivfs_control),
+ trivfs_cntl_porttype);
cntl->underlying = realnode;
return ports_get_right (cntl);
}