[PATCH] fix FTBFS with glib

Subject: [PATCH] fix FTBFS with glib

Date: Thu, 11 Feb 2021 15:51:23 +0100

To: notmuch@notmuchmail.org


From: Michael J Gruber

With newer glib, notmuch FTBFS because of C linkage error. This is due
to a misplaced include (inside an extern "C") which was always there
but exposed only recently through this change in glib:


Move to the include to the outside of the extern block.

Signed-off-by: Michael J Gruber <git@grubix.eu>
 lib/notmuch-private.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index 2fbf7ab9..46845253 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -31,6 +31,8 @@
 #include "notmuch.h"
+#include "gmime-extra.h"
 #include <stdlib.h>
@@ -47,8 +49,6 @@ NOTMUCH_BEGIN_DECLS
 #include <talloc.h>
-#include "gmime-extra.h"
 #include "xutil.h"
 #include "error_util.h"
 #include "string-util.h"
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org