diff options
Diffstat (limited to 'source4/lib/events/events_select.c')
-rw-r--r-- | source4/lib/events/events_select.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/lib/events/events_select.c b/source4/lib/events/events_select.c index 36b5afc42e..291ddbde2b 100644 --- a/source4/lib/events/events_select.c +++ b/source4/lib/events/events_select.c @@ -291,7 +291,17 @@ static const struct event_ops select_event_ops = { .loop_wait = select_event_loop_wait, }; -NTSTATUS events_select_init(void) +bool events_select_init(void) { return event_register_backend("select", &select_event_ops); } + +#if _SAMBA_BUILD_ +NTSTATUS s4_events_select_init(void) +{ + if (!events_select_init()) { + return NT_STATUS_INTERNAL_ERROR; + } + return NT_STATUS_OK; +} +#endif |