From: Ken Raeburn Date: Sat, 13 Jul 2002 02:01:03 +0000 (+0000) Subject: drop NEED_TIME_H processing in krb.h X-Git-Tag: krb5-1.3-alpha1~576 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a096bb0d5623a2638996a59ded0cba023067a43e;p=krb5.git drop NEED_TIME_H processing in krb.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14643 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/kerberosIV/ChangeLog b/src/include/kerberosIV/ChangeLog index b8af2409d..58736cf57 100644 --- a/src/include/kerberosIV/ChangeLog +++ b/src/include/kerberosIV/ChangeLog @@ -1,6 +1,8 @@ 2002-07-12 Ken Raeburn - * krb.h: Don't include port-sockets.h. + * krb.h: Don't include port-sockets.h. Don't check for + NEED_TIME_H, just don't include time.h and sys/time.h on + non-Windows platforms. 2002-04-10 Danilo Almeida diff --git a/src/include/kerberosIV/krb.h b/src/include/kerberosIV/krb.h index 566de3b0b..90d78aa10 100644 --- a/src/include/kerberosIV/krb.h +++ b/src/include/kerberosIV/krb.h @@ -336,14 +336,6 @@ typedef struct msg_dat MSG_DAT; /* Define u_char, u_short, u_int, and u_long. */ #include -#if !defined(_WINDOWS) -#ifdef NEED_TIME_H -#include /* For localtime, etc */ -#include -#endif -#endif /* !_WINDOWS */ - - /* ask to disable IP address checking in the library */ extern int krb_ignore_ip_address; diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index fd6250306..e4aa67cd6 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,5 +1,9 @@ 2002-07-12 Ken Raeburn + * mac_time.c, stime.c: Don't define NEED_TIME_H; instead, include + time.h and sys/time.h when _WINDOWS isn't defined, which is what + krb.h used to do for NEED_TIME_H. + * ad_print.c, cr_tkt.c, decomp_tkt.c, g_krbhst.c, g_phost.c, g_tkt_svc.c, mk_priv.c, mk_safe.c, netread.c, netwrite.c, prot_kdc.c, rd_priv.c, rd_safe.c, realmofhost.c, recvauth.c, diff --git a/src/lib/krb4/mac_time.c b/src/lib/krb4/mac_time.c index 28a56223d..7f5581bf8 100644 --- a/src/lib/krb4/mac_time.c +++ b/src/lib/krb4/mac_time.c @@ -12,10 +12,11 @@ #include "mit-copyright.h" #define DEFINE_SOCKADDR /* For struct hostent, , etc */ -#define NEED_TIME_H #include "krb.h" #include "des.h" #include "AddressXlation.h" /* for ip_addr */ +#include +#include #include /* Defines MachineLocation, used by getTimeZoneOffset */ #include /* Defines BitTst(), called by getTimeZoneOffset() */ diff --git a/src/lib/krb4/stime.c b/src/lib/krb4/stime.c index d1261acb8..55b306472 100644 --- a/src/lib/krb4/stime.c +++ b/src/lib/krb4/stime.c @@ -10,10 +10,13 @@ #include "mit-copyright.h" #define DEFINE_SOCKADDR -#define NEED_TIME_H #include "krb.h" #include "krb4int.h" #include /* for sprintf() */ +#ifndef _WINDOWS +#include +#include +#endif /* * Given a pointer to a long containing the number of seconds