diff options
author | Roland McGrath <roland@gnu.org> | 1998-09-04 18:26:45 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-09-04 18:26:45 +0000 |
commit | 134a2b413290a82e3271465b9048268133fabf04 (patch) | |
tree | d9cc902544c3f104cb628dc035fde0994cc5ce88 /daemons | |
parent | 9130de71b5e7ceac1124bfc63ad7689b23b3db01 (diff) |
1998-09-04 Roland McGrath <roland@baalperazim.frob.com>
* lmail.c: Include <time.h> and <sys/time.h>.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/lmail.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/daemons/lmail.c b/daemons/lmail.c index fbcd1ae7..89599837 100644 --- a/daemons/lmail.c +++ b/daemons/lmail.c @@ -1,6 +1,6 @@ /* Local mail delivery - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -33,6 +33,8 @@ #include <hurd.h> #include <hurd/fd.h> #include <version.h> +#include <time.h> +#include <sys/time.h> #define OPT_FILE -5 @@ -140,7 +142,7 @@ bfree (char *blk, size_t blk_len) /* Read up to MAX chars from IN into BLK & BLK_LEN, which may be reused or freed. */ -static int +static int bread (int in, char *in_name, size_t max, char **blk, size_t *blk_len) { char *orig_blk = *blk; @@ -192,7 +194,7 @@ copy (int in, char *in_name, int out, char *out_name) return ex; } -static int +static int write_header (int out, char *out_name, struct params *params) { char *hdr; @@ -338,7 +340,7 @@ deliver (int msg, char *msg_name, char *rcpt, int flags, struct params *params) asprintf (&mbox, "%s/%s", params->mail_dir, rcpt); if (! mbox) return SYSERRX (ENOMEM, "%s", rcpt); - + do { /* First try to open an existing mailbox. */ |