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
+Mon Feb 8 22:11:50 1999 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * 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 <tytso@rsts-11.mit.edu>
* Makefile.in: Set the myfulldir and mydir variables (which are
##WIN32##all-windows:: klist.exe
##WIN32##klist.exe: klist.obj $(KLIB) $(CLIB)
-##WIN32## link /nologo /out:$@ $**
+##WIN32## link /nologo /out:$@ $** wsock32.lib
clean-unix::
#include <string.h>
#include <stdio.h>
#include <time.h>
+
+#if (defined(_MSDOS) || defined(_WIN32))
+#include <winsock.h>
+#else
#include <sys/socket.h>
#include <netdb.h>
+#endif
extern int optind;
extern char *optarg;