diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:29:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-12 10:29:54 +0000 |
commit | dbd6563f43b2efad6079c4fb53cedd745a6c926c (patch) | |
tree | 88984e951f9c64f5b275fe15f33a7a4e4bfb950b | |
parent | 9d0ff26d7a50b955210974e3fc1e9b86f7bd2316 (diff) | |
download | mailutils-dbd6563f43b2efad6079c4fb53cedd745a6c926c.tar.gz mailutils-dbd6563f43b2efad6079c4fb53cedd745a6c926c.tar.bz2 |
Added missing includes
-rw-r--r-- | mailbox/maildir/folder.c | 2 | ||||
-rw-r--r-- | mailbox/mbox/url.c | 1 | ||||
-rw-r--r-- | mailbox/mh/folder.c | 4 | ||||
-rw-r--r-- | mailbox/muerrno.c | 1 | ||||
-rw-r--r-- | mailbox/rfc2047.c | 1 | ||||
-rw-r--r-- | mh/mh.h | 5 | ||||
-rw-r--r-- | 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 <registrar0.h> #include <maildir.h> +#include <mailutils/mutil.h> +#include <amd.h> 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 <registrar0.h> #include <url0.h> #include <mailutils/errno.h> +#include <mailutils/mutil.h> 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 <url0.h> #include <folder0.h> #include <registrar0.h> +#include <amd.h> +#include <mailutils/mutil.h> 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 <config.h> #endif +#include <stdio.h> #include <errno.h> #include <string.h> 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 <mailutils/stream.h> #include <mailutils/filter.h> #include <mailutils/errno.h> +#include <mailutils/mutil.h> int rfc2047_decode (const char *tocode, const char *input, char **ptostr) @@ -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 <mailutils/debug.h> #include <mailutils/mailer.h> #include <mailutils/envelope.h> +#include <mailutils/mime.h> #include <mu_asprintf.h> #include <getline.h> @@ -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 <mh.h> #include <mh_alias.h> #include <sys/stat.h> +#include <ctype.h> + +#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)) |