aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat/have_strcasestr.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/have_strcasestr.c')
-rw-r--r--compat/have_strcasestr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat/have_strcasestr.c b/compat/have_strcasestr.c
new file mode 100644
index 00000000..c0fb7629
--- /dev/null
+++ b/compat/have_strcasestr.c
@@ -0,0 +1,10 @@
+#define _GNU_SOURCE
+#include <strings.h>
+
+int main()
+{
+ char *found;
+ const char *haystack, *needle;
+
+ found = strcasestr(haystack, needle);
+}