diff --git a/src/Makefile.am b/src/Makefile.am
index c71dc9ad7e..2120fc2188 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -65,6 +65,7 @@ SYSTEMD_DHCP_CFLAGS = \
-I$(top_srcdir)/src/dhcp-manager/systemd-dhcp
libsystemd_dhcp_la_SOURCES = \
+ dhcp-manager/systemd-dhcp/src/libsystemd/sd-id128/sd-id128.c \
dhcp-manager/systemd-dhcp/src/libsystemd-network/dhcp-network.c \
dhcp-manager/systemd-dhcp/src/libsystemd-network/dhcp-packet.c \
dhcp-manager/systemd-dhcp/src/libsystemd-network/dhcp-internal.h \
diff --git a/src/dhcp-manager/systemd-dhcp/src/libsystemd/sd-id128/sd-id128.c b/src/dhcp-manager/systemd-dhcp/src/libsystemd/sd-id128/sd-id128.c
index c876f6e381..850461651a 100644
--- a/src/dhcp-manager/systemd-dhcp/src/libsystemd/sd-id128/sd-id128.c
+++ b/src/dhcp-manager/systemd-dhcp/src/libsystemd/sd-id128/sd-id128.c
@@ -19,6 +19,8 @@
along with systemd; If not, see .
***/
+#include "nm-sd-adapt.h"
+
#include
#include
#include
@@ -27,6 +29,7 @@
#include "macro.h"
#include "sd-id128.h"
+#if 0 /* NM_IGNORED */
_public_ char *sd_id128_to_string(sd_id128_t id, char s[33]) {
unsigned n;
@@ -102,6 +105,7 @@ static sd_id128_t make_v4_uuid(sd_id128_t id) {
return id;
}
+#endif
_public_ int sd_id128_get_machine(sd_id128_t *ret) {
static thread_local sd_id128_t saved_machine_id;
@@ -152,6 +156,7 @@ _public_ int sd_id128_get_machine(sd_id128_t *ret) {
return 0;
}
+#if 0 /* NM_IGNORED */
_public_ int sd_id128_get_boot(sd_id128_t *ret) {
static thread_local sd_id128_t saved_boot_id;
static thread_local bool saved_boot_id_valid = false;
@@ -227,3 +232,4 @@ _public_ int sd_id128_randomize(sd_id128_t *ret) {
*ret = make_v4_uuid(t);
return 0;
}
+#endif /* NM_IGNORED */
diff --git a/src/dhcp-manager/systemd-dhcp/src/shared/macro.h b/src/dhcp-manager/systemd-dhcp/src/shared/macro.h
index bd302918c5..c65a0bac41 100644
--- a/src/dhcp-manager/systemd-dhcp/src/shared/macro.h
+++ b/src/dhcp-manager/systemd-dhcp/src/shared/macro.h
@@ -410,7 +410,6 @@ do { \
_found; \
})
-#if 0 /* NM_IGNORED */
/* Return a nulstr for a standard cascade of configuration directories,
* suitable to pass to conf_files_list_nulstr or config_parse_many. */
#define CONF_DIRS_NULSTR(n) \
@@ -440,6 +439,7 @@ do { \
#endif
#endif
+#if 0 /* NM_IGNORED */
/* Define C11 noreturn without and even on older gcc
* compiler versions */
#ifndef noreturn