]> git.notmuchmail.org Git - notmuch/blobdiff - compat/have_strsep.c
strsep: check for availability (Solaris support)
[notmuch] / compat / have_strsep.c
diff --git a/compat/have_strsep.c b/compat/have_strsep.c
new file mode 100644 (file)
index 0000000..2abab81
--- /dev/null
@@ -0,0 +1,11 @@
+#define _GNU_SOURCE
+#include <string.h>
+
+int main()
+{
+    char *found;
+    char **stringp;
+    const char *delim;
+
+    found = strsep(stringp, delim);
+}