summaryrefslogtreecommitdiff
path: root/source4/ntvfs/sysdep
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-12-17 00:06:34 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-17 11:04:45 +0100
commit081f8883bafc11ca7c08f868ec19f1ea32071837 (patch)
tree2e190f34ba0cb18321e0581f5e3ac242ee93f03b /source4/ntvfs/sysdep
parent675b363b712e0b91b9b7d1189a819a36853db539 (diff)
downloadsamba-081f8883bafc11ca7c08f868ec19f1ea32071837.tar.gz
samba-081f8883bafc11ca7c08f868ec19f1ea32071837.tar.bz2
samba-081f8883bafc11ca7c08f868ec19f1ea32071837.zip
s4: fix LIBEVENTS dependencies and use more forward declarations
We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
Diffstat (limited to 'source4/ntvfs/sysdep')
-rw-r--r--source4/ntvfs/sysdep/config.mk2
-rw-r--r--source4/ntvfs/sysdep/sys_lease.c1
-rw-r--r--source4/ntvfs/sysdep/sys_lease.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/sysdep/config.mk b/source4/ntvfs/sysdep/config.mk
index 1122d5c39d..49ad70b95e 100644
--- a/source4/ntvfs/sysdep/config.mk
+++ b/source4/ntvfs/sysdep/config.mk
@@ -3,6 +3,7 @@
[MODULE::sys_notify_inotify]
SUBSYSTEM = sys_notify
INIT_FUNCTION = sys_notify_inotify_init
+PRIVATE_DEPENDENCIES = LIBEVENTS
# End MODULE sys_notify_inotify
################################################
@@ -17,6 +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
sys_lease_linux_OBJ_FILES = $(ntvfssrcdir)/sysdep/sys_lease_linux.o
diff --git a/source4/ntvfs/sysdep/sys_lease.c b/source4/ntvfs/sysdep/sys_lease.c
index 6e28b46550..64e993f395 100644
--- a/source4/ntvfs/sysdep/sys_lease.c
+++ b/source4/ntvfs/sysdep/sys_lease.c
@@ -25,7 +25,6 @@
#include "includes.h"
#include "system/filesys.h"
#include "ntvfs/sysdep/sys_lease.h"
-#include "lib/events/events.h"
#include "../lib/util/dlinklist.h"
#include "param/param.h"
diff --git a/source4/ntvfs/sysdep/sys_lease.h b/source4/ntvfs/sysdep/sys_lease.h
index e53760fb1e..6cda6398b2 100644
--- a/source4/ntvfs/sysdep/sys_lease.h
+++ b/source4/ntvfs/sysdep/sys_lease.h
@@ -22,6 +22,7 @@
struct sys_lease_context;
struct opendb_entry;
struct messaging_context;
+struct event_context;
typedef NTSTATUS (*sys_lease_send_break_fn)(struct messaging_context *,
struct opendb_entry *,