aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat/Makefile.local
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/Makefile.local
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/Makefile.local')
-rw-r--r--compat/Makefile.local4
1 files changed, 4 insertions, 0 deletions
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)