Linux, FreeBSD, and Solaris all expect to find the prototype for "index()" in <strings.h>. On some operating systems, including <string.h> is sufficient to get the prototype, but that's not the case on Solaris. This patch just modifies notmuch-config.c to include <strings.h> to get the prototype. --- notmuch-config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/notmuch-config.c b/notmuch-config.c index 3e37a2d..2537a65 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -23,6 +23,7 @@ #include <pwd.h> #include <netdb.h> #include <assert.h> +#include <strings.h> static const char toplevel_config_comment[] = " .notmuch-config - Configuration file for the notmuch mail system\n" -- 1.7.9.2