summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-05-22 12:59:56 -0500
committerDavid Teigland <teigland@redhat.com>2015-05-28 16:36:16 -0500
commit27c695d0dfb9124a947ca0e5feeca954b391c527 (patch)
treee688fb1bec1c3936abaea1ad084b3a72807e143a
parentf64f3a104b775d96366d8737ee6192eff545ea05 (diff)
downloadlvm2-27c695d0dfb9124a947ca0e5feeca954b391c527.tar.gz
lvmlockd: include time.h and link with rt
-rw-r--r--daemons/lvmlockd/Makefile.in2
-rw-r--r--daemons/lvmlockd/lvmlockd-core.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/daemons/lvmlockd/Makefile.in b/daemons/lvmlockd/Makefile.in
index dcb8a92c6..16b8dac96 100644
--- a/daemons/lvmlockd/Makefile.in
+++ b/daemons/lvmlockd/Makefile.in
@@ -29,7 +29,7 @@ include $(top_builddir)/make.tmpl
INCLUDES += -I$(top_srcdir)/libdaemon/server
LVMLIBS = -ldaemonserver $(LVMINTERNAL_LIBS) -ldevmapper
-LIBS += $(PTHREAD_LIBS) -ldlm_lt -lsanlock_client
+LIBS += $(PTHREAD_LIBS) -ldlm_lt -lsanlock_client -lrt
LDFLAGS += -L$(top_builddir)/libdaemon/server
CLDFLAGS += -L$(top_builddir)/libdaemon/server
diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c
index 9122c92e8..16bac48f8 100644
--- a/daemons/lvmlockd/lvmlockd-core.c
+++ b/daemons/lvmlockd/lvmlockd-core.c
@@ -33,6 +33,7 @@
#include <getopt.h>
#include <syslog.h>
#include <dirent.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/utsname.h>