mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-29 08:11:08 +00:00
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.
This commit is contained in:
parent
fd3df63fb6
commit
d60fdd480d
@ -2,6 +2,8 @@
|
|||||||
#include_next <hurd/port.h>
|
#include_next <hurd/port.h>
|
||||||
|
|
||||||
#ifndef _ISOMAC
|
#ifndef _ISOMAC
|
||||||
|
#include <libc-lock.h>
|
||||||
|
|
||||||
struct _hurd_port_use_data
|
struct _hurd_port_use_data
|
||||||
{
|
{
|
||||||
struct hurd_port *p;
|
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. */
|
/* Like HURD_PORT_USE, but cleans fd on cancel. */
|
||||||
#define HURD_PORT_USE_CANCEL(portcell, expr) \
|
#define HURD_PORT_USE_CANCEL(portcell, expr) \
|
||||||
({ struct _hurd_port_use_data __d; \
|
({ struct _hurd_port_use_data __d; \
|
||||||
|
mach_port_t port; \
|
||||||
__typeof(expr) __result; \
|
__typeof(expr) __result; \
|
||||||
void *__crit; \
|
void *__crit; \
|
||||||
__d.p = (portcell); \
|
__d.p = (portcell); \
|
||||||
|
Loading…
Reference in New Issue
Block a user