Sergey Bugaev, le lun. 26 avril 2021 20:08:18 +0300, a ecrit: > This fixes a build error.
Applied, thanks! > --- > stow-mutations.h | 1 + > stow-priv.h | 4 ++++ > stow.c | 9 +++++++++ > 3 files changed, 14 insertions(+) > > diff --git a/stow-mutations.h b/stow-mutations.h > index d36280d..95c1e7f 100644 > --- a/stow-mutations.h > +++ b/stow-mutations.h > @@ -21,6 +21,7 @@ > /* Only CPP macro definitions should go in this file. */ > > #define FS_NOTIFY_INTRAN stow_notify_t begin_using_notify_port (fs_notify_t) > +#define FS_NOTIFY_INTRAN_PAYLOAD stow_notify_t > begin_using_notify_port_payload > #define FS_NOTIFY_DESTRUCTOR end_using_notify_port (stow_notify_t) > > #define FS_NOTIFY_IMPORTS import "stow-priv.h"; > diff --git a/stow-priv.h b/stow-priv.h > index 2212ac9..eeae7b3 100644 > --- a/stow-priv.h > +++ b/stow-priv.h > @@ -36,6 +36,10 @@ typedef struct stow_notify *stow_notify_t; > arranges for this to happen for the fs_notify interfaces. */ > stow_notify_t begin_using_notify_port (fs_notify_t port); > > +/* Called by MiG to translate ports into stow_notify_t when using the > + protected payload feature. mutations.h arranges for this to happen > + for the fs_notify interfaces. */ > +stow_notify_t begin_using_notify_port_payload (unsigned long payload); > > /* Called by MiG after server routines have been run; this balances > begin_using_notify_port, and is arranged for the fs_notify > diff --git a/stow.c b/stow.c > index cf6366e..a04ffdf 100644 > --- a/stow.c > +++ b/stow.c > @@ -167,6 +167,15 @@ begin_using_notify_port (fs_notify_t port) > return ports_lookup_port (stow_port_bucket, port, stow_port_class); > } > > +/* Called by MiG to translate ports into stow_notify_t when using the > + protected payload feature. mutations.h arranges for this to happen > + for the fs_notify interfaces. */ > +stow_notify_t > +begin_using_notify_port_payload (unsigned long payload) > +{ > + return ports_lookup_payload (stow_port_bucket, payload, stow_port_class); > +} > + > /* Called by MiG after server routines have been run; this balances > begin_using_notify_port, and is arranged for the fs_notify > interfaces by mutations.h. */ > -- > 2.31.1 > > -- Samuel War doesn't prove who's right, just who's left.