summaryrefslogtreecommitdiff
path: root/src/nss-myhostname
diff options
context:
space:
mode:
Diffstat (limited to 'src/nss-myhostname')
-rw-r--r--src/nss-myhostname/Makefile2
-rw-r--r--src/nss-myhostname/nss-myhostname.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/nss-myhostname/Makefile b/src/nss-myhostname/Makefile
index 3f87158794..172758048b 100644
--- a/src/nss-myhostname/Makefile
+++ b/src/nss-myhostname/Makefile
@@ -37,7 +37,7 @@ libnss_myhostname_la_LDFLAGS = \
-Wl,--version-script=$(srcdir)/nss-myhostname.sym
libnss_myhostname_la_LIBADD = \
- libsystemd-internal.la \
+ libsystemd-shared.la \
libsystemd-basic.la
rootlib_LTLIBRARIES += \
diff --git a/src/nss-myhostname/nss-myhostname.c b/src/nss-myhostname/nss-myhostname.c
index 862ad2fcb5..c8858a00d2 100644
--- a/src/nss-myhostname/nss-myhostname.c
+++ b/src/nss-myhostname/nss-myhostname.c
@@ -24,7 +24,6 @@
#include <stdlib.h>
#include <string.h>
-#include "sd-netlink/local-addresses.h"
#include "systemd-basic/alloc-util.h"
#include "systemd-basic/hostname-util.h"
#include "systemd-basic/macro.h"
@@ -32,6 +31,7 @@
#include "systemd-basic/signal-util.h"
#include "systemd-basic/string-util.h"
#include "systemd-basic/util.h"
+#include "systemd-shared/local-addresses.h"
/* We use 127.0.0.2 as IPv4 address. This has the advantage over
* 127.0.0.1 that it can be translated back to the local hostname. For