Mercurial > emacs
changeset 102006:86059ded629a
Include time.h unconditionally.
(main): Use time_t for time variables.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Fri, 13 Feb 2009 14:21:30 +0000 |
parents | a0a98144aa0b |
children | 61fe6fd8dff1 |
files | lib-src/movemail.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/movemail.c Fri Feb 13 14:21:16 2009 +0000 +++ b/lib-src/movemail.c Fri Feb 13 14:21:30 2009 +0000 @@ -60,6 +60,7 @@ #include <sys/file.h> #include <stdio.h> #include <errno.h> +#include <time.h> #include <getopt.h> #ifdef HAVE_UNISTD_H @@ -375,7 +376,7 @@ int lockcount = 0; int status = 0; #if defined (MAIL_USE_MAILLOCK) && defined (HAVE_TOUCHLOCK) - long touched_lock, now; + time_t touched_lock, now; #endif setuid (getuid ()); @@ -684,7 +685,6 @@ #endif #include <pwd.h> #include <string.h> -#include <time.h> #define NOTOK (-1) #define OK 0