diff options
Diffstat (limited to 'libexec/tftpd/tftpd.c')
-rw-r--r-- | libexec/tftpd/tftpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 0067287..29fe0e7 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -57,6 +57,7 @@ static const char rcsid[] = #include <sys/stat.h> #include <sys/socket.h> #include <sys/types.h> +#include <sys/time.h> #include <netinet/in.h> #include <arpa/tftp.h> @@ -131,6 +132,8 @@ main(int argc, char *argv[]) struct passwd *nobody; const char *chuser = "nobody"; + tzset(); /* syslog in localtime */ + openlog("tftpd", LOG_PID | LOG_NDELAY, LOG_FTP); while ((ch = getopt(argc, argv, "cClns:u:Uw")) != -1) { switch (ch) { |