diff options
author | Blake Jones <blakej@foo.net> | 2013-08-16 16:38:16 +0200 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-08-23 17:55:39 +0200 |
commit | 43843745dcbf31e96f447410e335a8d2aa21b00d (patch) | |
tree | efdd355c806cafca3829f2b09d5aadd69b42a9ee /compat/have_strsep.c | |
parent | 49a0b96486242ca4fc4d26e5b01a34e9df7a9f9f (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/have_strsep.c')
-rw-r--r-- | compat/have_strsep.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compat/have_strsep.c b/compat/have_strsep.c new file mode 100644 index 00000000..2abab819 --- /dev/null +++ b/compat/have_strsep.c @@ -0,0 +1,11 @@ +#define _GNU_SOURCE +#include <string.h> + +int main() +{ + char *found; + char **stringp; + const char *delim; + + found = strsep(stringp, delim); +} |