mirror of
https://github.com/troglobit/finit.git
synced 2026-09-30 13:02:37 +07:00
sd-daemon.c: fix a compilation error
A following compilation error was observed: | libsystemd/sd-daemon.c:64: undefined reference to `strlcpy' fix it by include the required libite dependency. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
lib_LTLIBRARIES = libsystemd.la
|
||||
libsystemd_la_SOURCES = sd-daemon.c sd-daemon.h
|
||||
libsystemd_la_LDFLAGS = -version-info 0:0:0
|
||||
libsystemd_la_CFLAGS = $(lite_CFLAGS)
|
||||
libsystemd_la_LIBADD = $(lite_LIBS)
|
||||
|
||||
# pkg-config support
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
@@ -9,4 +11,4 @@ pkgconfig_DATA = libsystemd.pc
|
||||
|
||||
# Install header to systemd/ subdirectory
|
||||
systemddir = $(includedir)/systemd
|
||||
systemd_HEADERS = sd-daemon.h
|
||||
systemd_HEADERS = sd-daemon.h
|
||||
|
||||
@@ -23,6 +23,11 @@
|
||||
#include <sys/un.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#ifdef _LIBITE_LITE
|
||||
# include <libite/lite.h>
|
||||
#else
|
||||
# include <lite/lite.h>
|
||||
#endif
|
||||
|
||||
#include "sd-daemon.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user