aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat/compat.h
diff options
context:
space:
mode:
authorGravatar Blake Jones <blakej@foo.net>2013-08-16 16:38:16 +0200
committerGravatar David Bremner <bremner@debian.org>2013-08-23 17:55:39 +0200
commit43843745dcbf31e96f447410e335a8d2aa21b00d (patch)
treeefdd355c806cafca3829f2b09d5aadd69b42a9ee /compat/compat.h
parent49a0b96486242ca4fc4d26e5b01a34e9df7a9f9f (diff)
strsep: check for availability (Solaris support)
Solaris does not ship a version of the strsep() function. This change adds a check to "configure" to see whether notmuch needs to provide its own implementation, and if so, it uses the new version in "compat/strsep.c" (which was copied from Mutt, and apparently before that from glibc). Signed-off-by: Vladimir Marek <vlmarek@volny.cz>
Diffstat (limited to 'compat/compat.h')
-rw-r--r--compat/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/compat.h b/compat/compat.h
index 0c4ac66f..ae762c30 100644
--- a/compat/compat.h
+++ b/compat/compat.h
@@ -53,6 +53,10 @@ getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp);
char* strcasestr(const char *haystack, const char *needle);
#endif /* !HAVE_STRCASESTR */
+#if !HAVE_STRSEP
+char *strsep(char **stringp, const char *delim);
+#endif /* !HAVE_STRSEP */
+
/* Silence gcc warnings about unused results. These warnings exist
* for a reason; any use of this needs to be justified. */
#ifdef __GNUC__