aboutsummaryrefslogtreecommitdiffstats
path: root/kerberos.c
diff options
context:
space:
mode:
Diffstat (limited to 'kerberos.c')
-rw-r--r--kerberos.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/kerberos.c b/kerberos.c
index 5ebbf1d6..ab8c7295 100644
--- a/kerberos.c
+++ b/kerberos.c
@@ -13,7 +13,7 @@
#include "fetchmail.h"
#include "socket.h"
-#include "i18n.h"
+#include <netinet/in.h> /* for htonl/ntohl */
#ifdef KERBEROS_V4
@@ -31,6 +31,10 @@
# include <krb.h>
# endif
+/* des.h might define _ for no good reason. */
+#undef _
+#include "i18n.h"
+
#if SIZEOF_INT == 4
typedef int int32;
#elif SIZEOF_SHORT == 4
@@ -130,7 +134,7 @@ int do_rfc1731(int sock, char *command, char *truename)
memcpy(session, credentials.session, sizeof session);
memset(&credentials, 0, sizeof credentials);
- des_key_sched(session, schedule);
+ des_key_sched(&session, schedule);
result = krb_get_tf_fullname(TKT_FILE, tktuser, tktinst, tktrealm);
if (result) {