[PATCH 08/10] notmuch-config: header for index() prototype (Solaris support)

Subject: [PATCH 08/10] notmuch-config: header for index() prototype (Solaris support)

Date: Sat, 3 Nov 2012 20:16:00 -0700

To: notmuch@notmuchmail.org

Cc: Blake Jones

From: Blake Jones


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


Thread: