diff options
author | Keith Vetter <keithv@fusion.com> | 1995-03-03 02:13:39 +0000 |
---|---|---|
committer | Keith Vetter <keithv@fusion.com> | 1995-03-03 02:13:39 +0000 |
commit | e61bc5292e6690d3e2e188016274758264351286 (patch) | |
tree | 2448c8027c58c31162c4018ffea7a30c7260e2cd /src/lib/krb5/os | |
parent | 601302fdda5c581d96b5979171c6350ff01b6ca4 (diff) | |
download | krb5-e61bc5292e6690d3e2e188016274758264351286.tar.gz krb5-e61bc5292e6690d3e2e188016274758264351286.tar.xz krb5-e61bc5292e6690d3e2e188016274758264351286.zip |
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
Diffstat (limited to 'src/lib/krb5/os')
-rw-r--r-- | src/lib/krb5/os/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/krb5/os/localaddr.c | 3 | ||||
-rw-r--r-- | 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 a116425449..c829a55344 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 2e0a52a250..e3751af943 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 <krb5/winsock.h> -#include <errno.h> 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 edc59b9a8e..f0bc9c7b3a 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 <time.h> #include <sys/timeb.h> #include <dos.h> +#include <string.h> /* * 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 */ |