]> git.cworth.org Git - notmuch/blobdiff - compat/have_strcasestr.c
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / compat / have_strcasestr.c
index c0fb7629d8e410f3a372c5c365c722e2a17a4ee1..8e004572dbf04865f538ba8d051b1745ae2fd495 100644 (file)
@@ -1,10 +1,12 @@
 #define _GNU_SOURCE
-#include <strings.h>
+#include <strings.h> /* strcasecmp() in POSIX */
+#include <string.h> /* strcasecmp() in *BSD */
 
-int main()
+int
+main ()
 {
     char *found;
     const char *haystack, *needle;
 
-    found = strcasestr(haystack, needle);
+    found = strcasestr (haystack, needle);
 }