From e61bc5292e6690d3e2e188016274758264351286 Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Fri, 3 Mar 1995 02:13:39 +0000 Subject: [PATCH] Used the NEED_SOCKETS mechanism to pull in winsock.h on the PC git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5067 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/localaddr.c | 3 +-- src/lib/krb5/os/ustime.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index a11642544..c829a5534 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 2 18:00:00 1995 Keith Vetter (keithv@fusion.com) + + * ustime.c: added another include for the pc for prototyping. + * localaddr.c: used the NEED_SOCKETS mechanism for getting winsock.h. + Wed Mar 1 17:30:00 1995 Keith Vetter (keithv@fusion.com) * Makefile.in: made to work on the PC diff --git a/src/lib/krb5/os/localaddr.c b/src/lib/krb5/os/localaddr.c index 2e0a52a25..e3751af94 100644 --- a/src/lib/krb5/os/localaddr.c +++ b/src/lib/krb5/os/localaddr.c @@ -27,6 +27,7 @@ */ +#define NEED_SOCKETS #include "k5-int.h" #ifndef _MSDOS @@ -226,8 +227,6 @@ krb5_os_localaddr(addr) /* No ioctls in winsock so we just assume there is only one networking * card per machine, so gethostent is good enough. */ -#include -#include krb5_error_code INTERFACE krb5_os_localaddr (krb5_address ***addr) { diff --git a/src/lib/krb5/os/ustime.c b/src/lib/krb5/os/ustime.c index edc59b9a8..f0bc9c7b3 100644 --- a/src/lib/krb5/os/ustime.c +++ b/src/lib/krb5/os/ustime.c @@ -66,6 +66,7 @@ krb5_us_timeofday(context, seconds, microseconds) #include #include #include +#include /* * Time handling. Translate Unix time calls into Kerberos internal @@ -113,7 +114,6 @@ win_gettime () { struct _timeb now; time_t time; long convert; /* MSC 7.00 bug work around */ - void memset(); _ftime(&now); /* Daylight savings time */ -- 2.26.2