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/Makefile.local | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compat/Makefile.local') diff --git a/compat/Makefile.local b/compat/Makefile.local index 13f16cd3..2c4f65fc 100644 --- a/compat/Makefile.local +++ b/compat/Makefile.local @@ -13,4 +13,8 @@ ifneq ($(HAVE_STRCASESTR),1) notmuch_compat_srcs += $(dir)/strcasestr.c endif +ifneq ($(HAVE_STRSEP),1) +notmuch_compat_srcs += $(dir)/strsep.c +endif + SRCS := $(SRCS) $(notmuch_compat_srcs) -- cgit v1.2.3