public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/vineet/arc-port-latest] hurd: Fix port definition in HURD_PORT_USE_CANCEL
@ 2020-07-07 22:03 Vineet Gupta
0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2020-07-07 22:03 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d60fdd480d32a9b4bd781cae08e9a8dfb486c3bd
commit d60fdd480d32a9b4bd781cae08e9a8dfb486c3bd
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sun Jun 28 17:00:47 2020 +0000
hurd: Fix port definition in HURD_PORT_USE_CANCEL
* sysdeps/hurd/include/hurd/port.h: Include <libc-lock.h>.
(HURD_PORT_USE_CANCEL): Add local port variable.
Diff:
---
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); \
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-07 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 22:03 [glibc/vineet/arc-port-latest] hurd: Fix port definition in HURD_PORT_USE_CANCEL Vineet Gupta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).