aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorChong Yidong2009-02-13 14:21:30 +0000
committerChong Yidong2009-02-13 14:21:30 +0000
commitbd41a17da90bfe76f6f872e6b1d678277f3c7209 (patch)
treea0a33c327f94c55ab923caf1181058200666fee7 /lib-src
parent8ee7d7be1df41c8c67bd14c4d7839be0c1d26a93 (diff)
downloademacs-bd41a17da90bfe76f6f872e6b1d678277f3c7209.tar.gz
emacs-bd41a17da90bfe76f6f872e6b1d678277f3c7209.zip
Include time.h unconditionally.
(main): Use time_t for time variables.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/movemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index d9443740b4b..70efce881c5 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -60,6 +60,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
60#include <sys/file.h> 60#include <sys/file.h>
61#include <stdio.h> 61#include <stdio.h>
62#include <errno.h> 62#include <errno.h>
63#include <time.h>
63 64
64#include <getopt.h> 65#include <getopt.h>
65#ifdef HAVE_UNISTD_H 66#ifdef HAVE_UNISTD_H
@@ -375,7 +376,7 @@ main (argc, argv)
375 int lockcount = 0; 376 int lockcount = 0;
376 int status = 0; 377 int status = 0;
377#if defined (MAIL_USE_MAILLOCK) && defined (HAVE_TOUCHLOCK) 378#if defined (MAIL_USE_MAILLOCK) && defined (HAVE_TOUCHLOCK)
378 long touched_lock, now; 379 time_t touched_lock, now;
379#endif 380#endif
380 381
381 setuid (getuid ()); 382 setuid (getuid ());
@@ -684,7 +685,6 @@ xmalloc (size)
684#endif 685#endif
685#include <pwd.h> 686#include <pwd.h>
686#include <string.h> 687#include <string.h>
687#include <time.h>
688 688
689#define NOTOK (-1) 689#define NOTOK (-1)
690#define OK 0 690#define OK 0