summaryrefslogtreecommitdiffstats
path: root/src/windows/leashdll/lshfunc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/windows/leashdll/lshfunc.c')
-rw-r--r--src/windows/leashdll/lshfunc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/windows/leashdll/lshfunc.c b/src/windows/leashdll/lshfunc.c
index 73b10c3579..c2b6d9216d 100644
--- a/src/windows/leashdll/lshfunc.c
+++ b/src/windows/leashdll/lshfunc.c
@@ -1,10 +1,16 @@
#include <windows.h>
#include <stdio.h>
#include <sys/types.h>
-#include <winsock.h>
+#include <winsock2.h>
#include "leashdll.h"
+#ifndef NO_KRB4
#include <KerberosIV/krb.h>
#include <prot.h>
+#else
+/* General definitions */
+#define KSUCCESS 0
+#define KFAILURE 255
+#endif
#include <time.h>
#include <leashwin.h>
@@ -14,7 +20,9 @@
#include <mitwhich.h>
+#ifndef NO_KRB4
#include <winkrbid.h>
+#endif
#include "reminder.h"
static char FAR *err_context;