---
plugins/data/Makefile.am | 2 ++
plugins/data/format.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/plugins/data/Makefile.am b/plugins/data/Makefile.am
index de6e80bb..01e5eec6 100644
--- a/plugins/data/Makefile.am
+++ b/plugins/data/Makefile.am
@@ -49,6 +49,7 @@ nbdkit_data_plugin_la_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/common/include \
-I$(top_srcdir)/common/allocators \
+ -I$(top_srcdir)/common/replacements \
-I$(top_srcdir)/common/utils \
$(NULL)
nbdkit_data_plugin_la_CFLAGS = \
@@ -62,6 +63,7 @@ nbdkit_data_plugin_la_LDFLAGS = \
nbdkit_data_plugin_la_LIBADD = \
$(top_builddir)/common/allocators/liballocators.la \
$(top_builddir)/common/utils/libutils.la \
+ $(top_builddir)/common/replacements/libcompat.la \
$(GNUTLS_LIBS) \
$(NULL)
diff --git a/plugins/data/format.c b/plugins/data/format.c
index 89f69357..9cb1a884 100644
--- a/plugins/data/format.c
+++ b/plugins/data/format.c
@@ -46,6 +46,7 @@
#include "ispowerof2.h"
#include "rounding.h"
#include "allocator.h"
+#include "strndup.h"
#include "format.h"
/* Store file at current offset in the allocator, updating the offset. */
--
2.27.0