[Pkg-gnupg-commit] [gnupg2] 10/124: tools: Fix compile error with older gcc versions.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 5 15:55:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit b1f48da02b474e985161aa2778d7b602a13c4292
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Mar 2 20:07:12 2017 +0100

    tools: Fix compile error with older gcc versions.
    
    * tools/mime-parser.h: Include rfc822parse.h.
    (struct rfc822parse_context): Remove duplicate definition.
    --
    
    GnuPG-bug-id: 2851
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 tools/mime-parser.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tools/mime-parser.h b/tools/mime-parser.h
index b9bb465..5dc0492 100644
--- a/tools/mime-parser.h
+++ b/tools/mime-parser.h
@@ -20,6 +20,8 @@
 #ifndef GNUPG_MIME_PARSER_H
 #define GNUPG_MIME_PARSER_H
 
+#include "rfc822parse.h"
+
 struct mime_parser_context_s;
 typedef struct mime_parser_context_s *mime_parser_t;
 
@@ -50,10 +52,6 @@ void mime_parser_set_collect_signature (mime_parser_t ctx,
 gpg_error_t mime_parser_parse (mime_parser_t ctx, estream_t fp);
 
 
-/* Duplicated declaration of the RFC822 parser context. */
-struct rfc822parse_context;
-typedef struct rfc822parse_context *rfc822parse_t;
-
 rfc822parse_t mime_parser_rfc822parser (mime_parser_t ctx);
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list