These are currently shadowed by the <string.h> inclusion from <compat/strnlen.h>.
@@ -22,6 +22,7 @@
#include <compat.h>
#include <errno.h>
+#include <string.h>
#include <stdlib.h>
#include <dpkg/dpkg.h>
#include <stddef.h>
#include <dpkg/namevalue.h>
@@ -23,6 +23,8 @@
#include <config.h>
+
#include <dpkg/dpkg-db.h>
#include <dpkg/pkg.h>
@@ -24,6 +24,7 @@
#include <stdarg.h>
#include <dpkg/macros.h>