From b59daa8ad9f7d9b3fd7c4ce485f4b20c474e1170 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Tue, 9 Feb 1999 03:12:52 +0000 Subject: [PATCH] klist.c: Under Windows, #include winsock.h instead of sys/socket.h and netdb.h Makefile.in: Under Windows, link against wsock32.lib to get gethostbyaddr(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11161 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/klist/ChangeLog | 8 ++++++++ src/clients/klist/Makefile.in | 2 +- src/clients/klist/klist.c | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/clients/klist/ChangeLog b/src/clients/klist/ChangeLog index b7120478f..ab75d77a1 100644 --- a/src/clients/klist/ChangeLog +++ b/src/clients/klist/ChangeLog @@ -1,3 +1,11 @@ +Mon Feb 8 22:11:50 1999 Theodore Y. Ts'o + + * klist.c: Under Windows, #include winsock.h instead of + sys/socket.h and netdb.h + + * Makefile.in: Under Windows, link against wsock32.lib to get + gethostbyaddr(). + 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are diff --git a/src/clients/klist/Makefile.in b/src/clients/klist/Makefile.in index e2414013d..904d25473 100644 --- a/src/clients/klist/Makefile.in +++ b/src/clients/klist/Makefile.in @@ -21,7 +21,7 @@ klist: klist.o $(KRB5_BASE_DEPLIBS) ##WIN32##all-windows:: klist.exe ##WIN32##klist.exe: klist.obj $(KLIB) $(CLIB) -##WIN32## link /nologo /out:$@ $** +##WIN32## link /nologo /out:$@ $** wsock32.lib clean-unix:: diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index deb5f44bc..5d79a52e4 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -30,8 +30,13 @@ #include #include #include + +#if (defined(_MSDOS) || defined(_WIN32)) +#include +#else #include #include +#endif extern int optind; extern char *optarg; -- 2.26.2