diff options
author | David Teigland <teigland@redhat.com> | 2015-05-22 12:59:56 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-06-02 11:39:34 -0500 |
commit | de632ee43550540cb7d4153c8593aaa819ecacbf (patch) | |
tree | 9cdf791314c96808c3de27671b29600935f9751e | |
parent | f1b6e38c67adc8b155254f343b8dc44a07d2457b (diff) | |
download | lvm2-de632ee43550540cb7d4153c8593aaa819ecacbf.tar.gz |
lvmlockd: include time.h and link with rt
-rw-r--r-- | daemons/lvmlockd/Makefile.in | 2 | ||||
-rw-r--r-- | daemons/lvmlockd/lvmlockd-core.c | 1 |
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> |