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>
This commit is contained in:
Werner Koch 2017-03-02 20:07:12 +01:00
parent 1890896fe6
commit b1f48da02b
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 2 additions and 4 deletions

View File

@ -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);