--- configure.ac.orig	2004-10-10 19:52:26.000000000 +1000
+++ configure.ac	2021-03-23 08:25:05.000000000 +1100
@@ -96,7 +96,8 @@
 # Test if the compiler has the GNU feature of putting argv[0] into a global
 AC_MSG_CHECKING([for program_invocation_short_name])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
-  [[#include <errno.h>]],
+  [[#include <errno.h>
+  #include <string.h>]],
   [[strlen(program_invocation_short_name)]])],
   [ AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME,,
       [GNU extension of saving argv[0] to program_invocation_short_name])
