2002-07-12 Ken Raeburn <raeburn@mit.edu>
- * 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 <dalmeida@mit.edu>
/* Define u_char, u_short, u_int, and u_long. */
#include <sys/types.h>
-#if !defined(_WINDOWS)
-#ifdef NEED_TIME_H
-#include <time.h> /* For localtime, etc */
-#include <sys/time.h>
-#endif
-#endif /* !_WINDOWS */
-
-
/* ask to disable IP address checking in the library */
extern int krb_ignore_ip_address;
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,
#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() */
#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