commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd,commited] hurd: Fix port definition in HURD_PORT_USE_CANCEL


From: Samuel Thibault
Subject: [hurd,commited] hurd: Fix port definition in HURD_PORT_USE_CANCEL
Date: Sun, 28 Jun 2020 20:06:00 +0200

* sysdeps/hurd/include/hurd/port.h: Include <libc-lock.h>.
(HURD_PORT_USE_CANCEL): Add local port variable.
---
 sysdeps/hurd/include/hurd/port.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sysdeps/hurd/include/hurd/port.h b/sysdeps/hurd/include/hurd/port.h
index 7828dd6fc1..e8c4b71338 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);                                                     \
-- 
2.27.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]