[Libguestfs] [PATCH nbdkit 03/13] memory: Use replacement function for strndup.

Richard W.M. Jones rjones at redhat.com
Thu Aug 20 11:37:36 UTC 2020


On Windows strndup is missing.
---
 plugins/memory/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/memory/Makefile.am b/plugins/memory/Makefile.am
index a88c45c9..5915baf4 100644
--- a/plugins/memory/Makefile.am
+++ b/plugins/memory/Makefile.am
@@ -43,6 +43,7 @@ nbdkit_memory_plugin_la_SOURCES = \
 nbdkit_memory_plugin_la_CPPFLAGS = \
 	-I$(top_srcdir)/include \
 	-I$(top_srcdir)/common/allocators \
+	-I$(top_srcdir)/common/replacements \
 	-I$(top_srcdir)/common/utils \
 	$(NULL)
 nbdkit_memory_plugin_la_CFLAGS = $(WARNINGS_CFLAGS)
@@ -52,6 +53,7 @@ nbdkit_memory_plugin_la_LDFLAGS = \
 	$(NULL)
 nbdkit_memory_plugin_la_LIBADD = \
 	$(top_builddir)/common/allocators/liballocators.la \
+	$(top_builddir)/common/replacements/libcompat.la \
 	$(top_builddir)/common/utils/libutils.la \
 	$(NULL)
 
-- 
2.27.0




More information about the Libguestfs mailing list