diff --git a/daemons/dmeventd/Makefile.in b/daemons/dmeventd/Makefile.in index 0a03d6656..6bd36d032 100644 --- a/daemons/dmeventd/Makefile.in +++ b/daemons/dmeventd/Makefile.in @@ -57,8 +57,7 @@ all: device-mapper device-mapper: $(TARGETS) CFLAGS_dmeventd.o += $(EXTRA_EXEC_CFLAGS) -LIBS += $(PTHREAD_LIBS) -LIBS += $(INTERNAL_LIBS) +LIBS += $(PTHREAD_LIBS) -L$(top_builddir)/libdm -ldevmapper dmeventd: $(LIB_SHARED) dmeventd.o @echo " [CC] $@" diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c index dcc743deb..4a5844981 100644 --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -16,14 +16,13 @@ * dmeventd - dm event daemon to monitor active mapped devices */ -#include "device_mapper/misc/dmlib.h" -#include "base/memory/zalloc.h" -#include "device_mapper/misc/dm-logging.h" -#include "daemons/dmeventd/libdevmapper-event.h" +#include "configure.h" +#include "libdevmapper-event.h" #include "dmeventd.h" -#include "tools/tool.h" +#include "libdm/misc/dm-logging.h" +#include "base/memory/zalloc.h" #include #include @@ -35,6 +34,8 @@ #include #include /* for htonl, ntohl */ #include /* for musl libc */ +#include +#include #ifdef __linux__ /* @@ -62,8 +63,6 @@ #endif -#include - #define DM_SIGNALED_EXIT 1 #define DM_SCHEDULED_EXIT 2 static volatile sig_atomic_t _exit_now = 0; /* set to '1' when signal is given to exit */ diff --git a/daemons/dmeventd/libdevmapper-event.c b/daemons/dmeventd/libdevmapper-event.c index 1c4607a05..6465f64bc 100644 --- a/daemons/dmeventd/libdevmapper-event.c +++ b/daemons/dmeventd/libdevmapper-event.c @@ -12,11 +12,12 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "device_mapper/misc/dmlib.h" -#include "base/memory/zalloc.h" -#include "device_mapper/misc/dm-logging.h" -#include "daemons/dmeventd/libdevmapper-event.h" +#include "configure.h" +#include "libdevmapper-event.h" #include "dmeventd.h" +#include "libdm/misc/dm-logging.h" +#include "base/memory/zalloc.h" + #include "lib/misc/intl.h" #include diff --git a/daemons/dmeventd/libdevmapper-event.h b/daemons/dmeventd/libdevmapper-event.h index 4c9722300..cc65e7263 100644 --- a/daemons/dmeventd/libdevmapper-event.h +++ b/daemons/dmeventd/libdevmapper-event.h @@ -21,6 +21,7 @@ #ifndef LIB_DMEVENT_H #define LIB_DMEVENT_H +#include #include /*