summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8fe3ee6)
This fixes a build error on OpenSolaris where the final liking of
notmuch fails because the linker can't find strcasestr() referenced
from thread.cc.
(cherry picked from commit
aab54b4ce752b16725399d1543602ef3f7736c91)
#ifndef NOTMUCH_COMPAT_H
#define NOTMUCH_COMPAT_H
#ifndef NOTMUCH_COMPAT_H
#define NOTMUCH_COMPAT_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if !HAVE_GETLINE
#include <stdio.h>
#include <unistd.h>
#if !HAVE_GETLINE
#include <stdio.h>
#include <unistd.h>
char* strcasestr(const char *haystack, const char *needle);
#endif /* !HAVE_STRCASESTR */
char* strcasestr(const char *haystack, const char *needle);
#endif /* !HAVE_STRCASESTR */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NOTMUCH_COMPAT_H */
#endif /* NOTMUCH_COMPAT_H */