Mercurial > emacs
comparison lib-src/movemail.c @ 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 | 696b3e7c297b |
children | e85d013e3140 |
comparison
equal
deleted
inserted
replaced
102005:a0a98144aa0b | 102006:86059ded629a |
---|---|
58 #include <sys/types.h> | 58 #include <sys/types.h> |
59 #include <sys/stat.h> | 59 #include <sys/stat.h> |
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 |
66 #include <unistd.h> | 67 #include <unistd.h> |
67 #endif | 68 #endif |
373 if (fork () == 0) | 374 if (fork () == 0) |
374 { | 375 { |
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 ()); |
382 | 383 |
383 #ifndef MAIL_USE_MMDF | 384 #ifndef MAIL_USE_MMDF |
682 #undef _WINSOCKAPI_ | 683 #undef _WINSOCKAPI_ |
683 #include <winsock.h> | 684 #include <winsock.h> |
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 |
691 #define DONE 1 | 691 #define DONE 1 |
692 | 692 |