summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-03-02 20:07:12 +0100
committerWerner Koch <wk@gnupg.org>2017-03-02 20:07:12 +0100
commitb1f48da02b474e985161aa2778d7b602a13c4292 (patch)
tree9d5a9facf8b2395ad757bf4dc1bab1e773184284 /tools
parentdirmngr: Rearrange files to fix de6d831. (diff)
downloadgnupg2-b1f48da02b474e985161aa2778d7b602a13c4292.tar.xz
gnupg2-b1f48da02b474e985161aa2778d7b602a13c4292.zip
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@gnupg.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/mime-parser.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/mime-parser.h b/tools/mime-parser.h
index b9bb46575..5dc04920d 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);