diff options
Diffstat (limited to 'src/lib/krb4')
-rw-r--r-- | src/lib/krb4/ChangeLog | 4 | ||||
-rw-r--r-- | src/lib/krb4/mac_time.c | 3 | ||||
-rw-r--r-- | src/lib/krb4/stime.c | 5 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index fd62503..e4aa67c 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,5 +1,9 @@ 2002-07-12 Ken Raeburn <raeburn@mit.edu> + * 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 28a5622..7f5581b 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, <netdb.h>, etc */ -#define NEED_TIME_H #include "krb.h" #include "des.h" #include "AddressXlation.h" /* for ip_addr */ +#include <time.h> +#include <sys/time.h> #include <script.h> /* Defines MachineLocation, used by getTimeZoneOffset */ #include <ToolUtils.h> /* Defines BitTst(), called by getTimeZoneOffset() */ diff --git a/src/lib/krb4/stime.c b/src/lib/krb4/stime.c index d1261ac..55b3064 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 <stdio.h> /* for sprintf() */ +#ifndef _WINDOWS +#include <time.h> +#include <sys/time.h> +#endif /* * Given a pointer to a long containing the number of seconds |