aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/hurd/include/hurd/port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/hurd/include/hurd/port.h b/sysdeps/hurd/include/hurd/port.h
index 7828dd6..e8c4b71 100644
--- a/sysdeps/hurd/include/hurd/port.h
+++ b/sysdeps/hurd/include/hurd/port.h
@@ -2,6 +2,8 @@
#include_next <hurd/port.h>
#ifndef _ISOMAC
+#include <libc-lock.h>
+
struct _hurd_port_use_data
{
struct hurd_port *p;
@@ -14,6 +16,7 @@ extern void _hurd_port_use_cleanup (void *arg);
/* Like HURD_PORT_USE, but cleans fd on cancel. */
#define HURD_PORT_USE_CANCEL(portcell, expr) \
({ struct _hurd_port_use_data __d; \
+ mach_port_t port; \
__typeof(expr) __result; \
void *__crit; \
__d.p = (portcell); \