From dbd6563f43b2efad6079c4fb53cedd745a6c926c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 12 Jun 2004 10:29:54 +0000 Subject: Added missing includes --- mailbox/maildir/folder.c | 2 ++ mailbox/mbox/url.c | 1 + mailbox/mh/folder.c | 4 +++- mailbox/muerrno.c | 1 + mailbox/rfc2047.c | 1 + mh/mh.h | 5 ++++- mh/mh_alias.l | 7 ++++++- 7 files changed, 18 insertions(+), 3 deletions(-) diff --git a/mailbox/maildir/folder.c b/mailbox/maildir/folder.c index bc9f36dc0..3bbdeff5f 100644 --- a/mailbox/maildir/folder.c +++ b/mailbox/maildir/folder.c @@ -31,6 +31,8 @@ #include #include +#include +#include static int _maildir_folder_init (folder_t folder ARG_UNUSED) diff --git a/mailbox/mbox/url.c b/mailbox/mbox/url.c index 6daa63a37..9a339fd3f 100644 --- a/mailbox/mbox/url.c +++ b/mailbox/mbox/url.c @@ -31,6 +31,7 @@ #include #include #include +#include static void url_mbox_destroy (url_t purl); diff --git a/mailbox/mh/folder.c b/mailbox/mh/folder.c index a58eec369..15c5fc64e 100644 --- a/mailbox/mh/folder.c +++ b/mailbox/mh/folder.c @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2003, 2004 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -33,6 +33,8 @@ #include #include #include +#include +#include static int _mh_folder_init (folder_t folder ARG_UNUSED) diff --git a/mailbox/muerrno.c b/mailbox/muerrno.c index b678483e3..d5154a842 100644 --- a/mailbox/muerrno.c +++ b/mailbox/muerrno.c @@ -20,6 +20,7 @@ # include #endif +#include #include #include diff --git a/mailbox/rfc2047.c b/mailbox/rfc2047.c index df5fa6de5..0e639e9c2 100644 --- a/mailbox/rfc2047.c +++ b/mailbox/rfc2047.c @@ -26,6 +26,7 @@ #include #include #include +#include int rfc2047_decode (const char *tocode, const char *input, char **ptostr) diff --git a/mh/mh.h b/mh/mh.h index c9d9c1135..82d40a74c 100644 --- a/mh/mh.h +++ b/mh/mh.h @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -315,6 +316,7 @@ char *mh_draft_name __P((void)); char *mh_create_message_id __P((int)); int mh_whom __P((char *filename, int check)); void mh_set_reply_regex __P((const char *str)); +int mh_decode_2047 __P((char *text, char **decoded_text)); int mh_alias_read __P((char *name, int fail)); int mh_alias_get __P((char *name, list_t *return_list)); @@ -349,3 +351,4 @@ int check_draft_disposition __P((struct mh_whatnow_env *wh, int use_draft)); void ali_parse_error __P((char *fmt, ...)); void ali_verbatim __P((int enable)); + diff --git a/mh/mh_alias.l b/mh/mh_alias.l index 4863dc1dc..c96823411 100644 --- a/mh/mh_alias.l +++ b/mh/mh_alias.l @@ -19,6 +19,11 @@ #include #include #include +#include + +#ifndef isblank +# define isblank(c) ((c)==' ' || (c)=='\t') +#endif char *ali_filename; size_t ali_line_num; @@ -231,7 +236,7 @@ push_source (const char *name, int fail) FILE *fp; struct buffer_ctx *ctx; struct stat st; - const char *filename; + char *filename; filename = mh_expand_name (NULL, name, 0); if (stat (filename, &st)) -- cgit v1.2.1