summaryrefslogtreecommitdiffstats
path: root/source4/ntvfs/sysdep
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs/sysdep')
-rw-r--r--source4/ntvfs/sysdep/config.mk2
-rw-r--r--source4/ntvfs/sysdep/sys_lease_linux.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/source4/ntvfs/sysdep/config.mk b/source4/ntvfs/sysdep/config.mk
index 49ad70b95ed..5feca6143a4 100644
--- a/source4/ntvfs/sysdep/config.mk
+++ b/source4/ntvfs/sysdep/config.mk
@@ -18,7 +18,7 @@ sys_notify_inotify_OBJ_FILES = $(ntvfssrcdir)/sysdep/inotify.o
sys_notify_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_notify.o
[SUBSYSTEM::sys_lease_linux]
-PRIVATE_DEPENDENCIES = LIBEVENTS
+PRIVATE_DEPENDENCIES = LIBTEVENT
sys_lease_linux_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_lease_linux.o
diff --git a/source4/ntvfs/sysdep/sys_lease_linux.c b/source4/ntvfs/sysdep/sys_lease_linux.c
index 41f1cbd7105..d1473627a7d 100644
--- a/source4/ntvfs/sysdep/sys_lease_linux.c
+++ b/source4/ntvfs/sysdep/sys_lease_linux.c
@@ -22,8 +22,8 @@
*/
#include "includes.h"
+#include <tevent.h>
#include "system/filesys.h"
-#include "lib/events/events.h"
#include "ntvfs/sysdep/sys_lease.h"
#include "ntvfs/ntvfs.h"
#include "librpc/gen_ndr/ndr_opendb.h"
@@ -41,8 +41,8 @@ struct linux_lease_pending {
/* the global linked list of pending leases */
static struct linux_lease_pending *leases;
-static void linux_lease_signal_handler(struct event_context *ev_ctx,
- struct signal_event *se,
+static void linux_lease_signal_handler(struct tevent_context *ev_ctx,
+ struct tevent_signal *se,
int signum, int count,
void *_info, void *private_data)
{
@@ -89,11 +89,11 @@ static int linux_lease_pending_destructor(struct linux_lease_pending *p)
static NTSTATUS linux_lease_init(struct sys_lease_context *ctx)
{
- struct signal_event *se;
+ struct tevent_signal *se;
- se = event_add_signal(ctx->event_ctx, ctx,
- LINUX_LEASE_RT_SIGNAL, SA_SIGINFO,
- linux_lease_signal_handler, ctx);
+ se = tevent_add_signal(ctx->event_ctx, ctx,
+ LINUX_LEASE_RT_SIGNAL, SA_SIGINFO,
+ linux_lease_signal_handler, ctx);
NT_STATUS_HAVE_NO_MEMORY(se);
return NT_STATUS_OK;