notmuch/compat/have_strsep.c
Blake Jones 43843745dc 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>
2013-08-23 17:55:39 +02:00

11 lines
153 B
C

#define _GNU_SOURCE
#include <string.h>
int main()
{
char *found;
char **stringp;
const char *delim;
found = strsep(stringp, delim);
}