From: Samuel Thibault Date: Sun, 28 Jun 2020 17:00:47 +0000 (+0000) Subject: hurd: Fix port definition in HURD_PORT_USE_CANCEL X-Git-Tag: glibc-2.32~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d60fdd480d32a9b4bd781cae08e9a8dfb486c3bd;p=thirdparty%2Fglibc.git hurd: Fix port definition in HURD_PORT_USE_CANCEL * sysdeps/hurd/include/hurd/port.h: Include . (HURD_PORT_USE_CANCEL): Add local port variable. --- diff --git a/sysdeps/hurd/include/hurd/port.h b/sysdeps/hurd/include/hurd/port.h index 7828dd6fc13..e8c4b713381 100644 --- a/sysdeps/hurd/include/hurd/port.h +++ b/sysdeps/hurd/include/hurd/port.h @@ -2,6 +2,8 @@ #include_next #ifndef _ISOMAC +#include + 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); \