From 43843745dcbf31e96f447410e335a8d2aa21b00d Mon Sep 17 00:00:00 2001 From: Blake Jones Date: Fri, 16 Aug 2013 16:38:16 +0200 Subject: 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 --- compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat/compat.h') 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__ -- cgit v1.2.3