1 Return-Path: <tomc@caurea.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 6FDAB4196F0
\r
6 for <notmuch@notmuchmail.org>; Tue, 27 Apr 2010 10:27:02 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5
\r
12 tests=[BAYES_05=-0.5] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 095og+YiUl4H for <notmuch@notmuchmail.org>;
\r
16 Tue, 27 Apr 2010 10:26:59 -0700 (PDT)
\r
17 Received: from scotch.caurea.org (ks311007.kimsufi.com [188.165.197.188])
\r
18 by olra.theworths.org (Postfix) with ESMTP id AEBBB431FC1
\r
19 for <notmuch@notmuchmail.org>; Tue, 27 Apr 2010 10:26:59 -0700 (PDT)
\r
20 Received: by scotch.caurea.org (Postfix, from userid 101)
\r
21 id C09911316C1; Tue, 27 Apr 2010 19:27:18 +0200 (CEST)
\r
22 From: Tomas Carnecky <tom@dbservice.com>
\r
23 To: notmuch@notmuchmail.org
\r
24 Subject: [PATCH] Wrap the compat header in extern "C" { } when compiling C++
\r
26 Date: Tue, 27 Apr 2010 19:27:17 +0200
\r
27 Message-Id: <1272389237-16257-1-git-send-email-tom@dbservice.com>
\r
28 X-Mailer: git-send-email 1.7.0.5
\r
29 X-BeenThere: notmuch@notmuchmail.org
\r
30 X-Mailman-Version: 2.1.13
\r
32 List-Id: "Use and development of the notmuch mail system."
\r
33 <notmuch.notmuchmail.org>
\r
34 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
35 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
36 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
37 List-Post: <mailto:notmuch@notmuchmail.org>
\r
38 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
39 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
40 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
41 X-List-Received-Date: Tue, 27 Apr 2010 17:27:02 -0000
\r
43 This fixes a build error on OpenSolaris where the final liking of
\r
44 notmuch fails because the linker can't find strcasestr() referenced
\r
48 Is it safe to use NOTMUCH_BEGIN/END_DECLS in the compat header? The sha1 header
\r
49 also uses ifdef __cplusplus instead of that define..
\r
51 compat/compat.h | 8 ++++++++
\r
52 1 files changed, 8 insertions(+), 0 deletions(-)
\r
54 diff --git a/compat/compat.h b/compat/compat.h
\r
55 index 173ef68..7767fe8 100644
\r
56 --- a/compat/compat.h
\r
57 +++ b/compat/compat.h
\r
59 #ifndef NOTMUCH_COMPAT_H
\r
60 #define NOTMUCH_COMPAT_H
\r
69 @@ -42,4 +46,8 @@ getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp);
\r
70 char* strcasestr(const char *haystack, const char *needle);
\r
71 #endif /* !HAVE_STRCASESTR */
\r
77 #endif /* NOTMUCH_COMPAT_H */
\r