summaryrefslogtreecommitdiff
path: root/src/nss-myhostname
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-17 14:32:44 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-17 14:32:44 -0500
commit765741080e2c10268536a30c7fad3c04458f14b2 (patch)
tree084afa19dd9ef91907910c44241944f45286d35d /src/nss-myhostname
parent00d167ae602e721d88cc2fc6f79c7f6bb10610f7 (diff)
move local-addresses.{c,h} libsystemd-{internal/sd-netlink,shared}
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